discovering the underlying operating system

I have the following problem:

I am working with RxTx to communicate with a serial port, but with RxTx I noticed I should have a certain dll file for windows and other corresponding files for other operating systems.

My problem is that I want my java program to be able to decide which one to use on its own? Is that possible? if so, how?

Thanks

[370 byte] By [Eng_walaaa] at [2007-11-26 18:02:24]
# 1
The rxtx Java part takes care of that, i.e. it will load a .so file on *nixesand it will load a .dll file on windows. Proper installation took care of that.kind regards,Jos
JosAHa at 2007-7-9 5:32:17 > top of Java-index,Java Essentials,Java Programming...
# 2
so, that folder that contains all the files( .dll and .so,etc) I just make sure that the program has access to it and that's it?
Eng_walaaa at 2007-7-9 5:32:17 > top of Java-index,Java Essentials,Java Programming...
# 3
help please, I still do not understand.Another question is:I found alot of sites saying that javaComm and RxTx can b used together and others that say it isnot good . what should I do?I should only use one, which one offers maximum portability?Thanks;
Eng_walaaa at 2007-7-9 5:32:17 > top of Java-index,Java Essentials,Java Programming...
# 4

> help please, I still do not understand.

>

> Another question is:

>

> I found alot of sites saying that javaComm and RxTx

> can b used together and others that say it isnot good

> . what should I do?

>

> I should only use one, which one offers maximum

> portability?

>

> Thanks;

Javacomm does not support Windows (anymore). So I'd say: go for RXTX.

prometheuzza at 2007-7-9 5:32:17 > top of Java-index,Java Essentials,Java Programming...