Serial port using Java (Windows OS)
Hi folks !
I have to develop a Windows GUI using Java to control a HP spectrum analyser via the serial port (RS232). I know that once there was a Sun's package that allowed to build applications using serial portS (javax.comm) in Windows OS. But now that package is only for Linux and Solaris OS'es.... ?
Does anybody know about the subject ? How can I control the analyser through RS232 using Java ? Thanx a lot for any help !
Re: Serial port using Java (Windows OS)
I spent some time on how to solve this problem and found it:
http://www.cnjavaclub.com/06/javatools/1.htm
That the best way is to install it for all JRE and JDK.
Re: Serial port using Java (Windows OS)
That is version 2 of the reference implementation. You can get version 3 from Sun.
Re: Serial port using Java (Windows OS)
Thanx for your messages! I downloaded version 2.0 from the API and it works pretty well. It seems that version 3.0 does not include Windows OS'es due to
an incompatibility with Win2000...
Serial port using Java (Windows OS)
Sun have withdrawn the Java comm api for windows.
Re: Serial port using Java (Windows OS)
Hi,
Have you tried rxtx library? The complete example of using this library in java projects in Windows OS is presented here:http://www.kuligowski.pl/java/rs232-...-for-windows,1
Best Regards
mark
Re: Serial port using Java (Windows OS)
From what I know Sun dropped the support for Windows, but you can try various OS-specific extensions. I have used one from JCommWin32 and didn't have any problems so far.
Good luck