Hello,
every now and then I try to get into programming with Java,
"This time" it's the com port's turn.
Looked like I had to get at javax.comm, so I did: Downloaded it from von
java.sun.com
-> comm2.0.3.zip. Extracted its files w/ WinZip -> 1 Lizense file,
comm.jar, README.txt.
As I couldn't find anything about installation in the readme file, I
imported it w/ Eclipse
3.2.1 (I'm on WIndows XP).
But: "javax.comm.CommPortIdentifier.getPortIdentifiers cannot be resolved to
a
type..."
Googling around yielded the info, that two files are missing:
javax.comm.properties und win32com.dll. But why? And: Where can I get them
from?
Kind regards
Thin
P.S.: Java 6, Windows XP, Eclipes 3.2.1.
Twisted - 17 Jul 2007 09:21 GMT
> But: "javax.comm.CommPortIdentifier.getPortIdentifiers cannot be resolved to
> a
> type..."
This message isn't due to any missing properties file or DLL. It
indicates that the compiler saw the getPortIdentifiers method call
where it was expecting to see a type. You have a syntax error in your
source file near whatever line javac is complaining about.
Thin Myrna - 17 Jul 2007 10:10 GMT
>> But: "javax.comm.CommPortIdentifier.getPortIdentifiers cannot be resolved
>> to
[quoted text clipped - 5 lines]
> where it was expecting to see a type. You have a syntax error in your
> source file near whatever line javac is complaining about.
You are right, thank you! After having rearranged the code, the compiler
doesn't complain anymore. Sorry for the stupid question...
Kind regards
Thin
Roedy Green - 18 Jul 2007 06:58 GMT
On Tue, 17 Jul 2007 07:43:29 +0200, "Thin Myrna"
<thin.myrna@spamhaters.com> wrote, quoted or indirectly quoted someone
who said :
>every now and then I try to get into programming with Java,
pretty much any add on can be handed by adding jars to the ext
directory.
See http://mindprod.com/jgloss/classpath.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com