|
Re: Java Communications API [message #275879 is a reply to message #275875] |
Sun, 14 November 2004 21:17 |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
Try
project properties (select project + Alt-Enter) > Java Build Path >
Libraries > Add External Jars...
Chris
"Rob Greene" <greener@charter.net> wrote in message
news:cn8c6s$hdh$1@eclipse.org...
> Has anyone gotten the Java Communications API to work with Eclipse? I'm
> trying to develop some Java code to work over either the serial port or
> the parallel port, but Eclipse refuses to recognize the libraries.
>
> For instance, I can open the type CommPortEnumerator but not compile - the
> import statement has the following error message:
> The imported type javax.comm.CommPortEnumerator is not visible
>
> I do have my system setup correctly. I can go to the command-line and
> compile and then execute code that sees the API fine. Eclipse just
> refuses to recognize it.
>
> Any ideas?
>
> Thanks!
> -Rob
>
|
|
|
Re: Java Communications API [message #275885 is a reply to message #275879] |
Sun, 14 November 2004 22:46 |
Rob Greene Messages: 13 Registered: July 2009 |
Junior Member |
|
|
No luck, unfortunately. I originally had a variable set to point at the
JAR, but that didn't work, either.
Trying to classify my problem - I can Ctrl+Shift+T and enter
CommPortEnumerator and bring up the class file. In the Java source
editor, I can auto-complete the class name for "CommPortE" and get
CommPortEnumerator. When I try to enter
"CommPortIdentifier.getPortIdentifiers();", nothing autocompletes after
the dot. Of course, everything also shows up with red squigglies...
FWIW, my JRE System Library displays comm.jar (in
c:\j2sdk1.4.2_05\jre\lib\ext) as one of the system libraries. I can click
the "+" to open the JAR file and browse the classes. I have tried
pointing at the JAR directly in the Java Build Path for the project - but
if I choose the same copy of comm.jar, it's a duplicate on the classpath.
If I choose a different copy, it doesn't help.
I've placed the JAR, DLL, and properties in various spots throught my Java
environments. If I've done anything wrong, it is having placed the files
in multiple locations. :(
Chris Laffra wrote:
> Try
> project properties (select project + Alt-Enter) > Java Build Path >
> Libraries > Add External Jars...
> Chris
|
|
|
Re: Java Communications API [message #275895 is a reply to message #275885] |
Sun, 14 November 2004 23:49 |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
Smells like a JDT cache inconsistency to me.
Try selecting another VM and then switch back to your current one.
See Window > Preferences > Java > Installed JREs
If that fails, I would recommend creating a new workspace and try from
there.
Finally, if all fails, reinstall Eclipse.
Chris
"Rob Greene" <greener@charter.net> wrote in message
news:cn8n81$tuk$1@eclipse.org...
> No luck, unfortunately. I originally had a variable set to point at the
> JAR, but that didn't work, either.
>
> Trying to classify my problem - I can Ctrl+Shift+T and enter
> CommPortEnumerator and bring up the class file. In the Java source
> editor, I can auto-complete the class name for "CommPortE" and get
> CommPortEnumerator. When I try to enter
> "CommPortIdentifier.getPortIdentifiers();", nothing autocompletes after
> the dot. Of course, everything also shows up with red squigglies...
>
> FWIW, my JRE System Library displays comm.jar (in
> c:\j2sdk1.4.2_05\jre\lib\ext) as one of the system libraries. I can click
> the "+" to open the JAR file and browse the classes. I have tried
> pointing at the JAR directly in the Java Build Path for the project - but
> if I choose the same copy of comm.jar, it's a duplicate on the classpath.
> If I choose a different copy, it doesn't help.
>
> I've placed the JAR, DLL, and properties in various spots throught my Java
> environments. If I've done anything wrong, it is having placed the files
> in multiple locations. :(
>
> Chris Laffra wrote:
>
> > Try
>
> > project properties (select project + Alt-Enter) > Java Build Path >
> > Libraries > Add External Jars...
>
> > Chris
>
>
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02891 seconds