Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

[newbie] javax.com: Where to get missing files from?

Thread view: 
Thin Myrna - 17 Jul 2007 06:39 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.