Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse + javax.comm SerialPort problem
Eclipse + javax.comm SerialPort problem [message #53562] Mon, 18 April 2005 09:49 Go to next message
Eclipse UserFriend
Originally posted by: thomas.pototschnig.gmx.de

Hi,

I tried to install the comm-extensions (with Java 1.5) and copied my files:
win32com.dll -> \myjdk\jre\bin
javax.comm.properties -> \myjdk\jre\lib
comm.jar -> \myjdk\jre\lib\ext

Now to my problem:

A piece of my code:

portList = CommPortIdentifier.getPortIdentifiers();
try {
portId = CommPortIdentifier.getPortIdentifier( name );
} catch(Exception e) {System.out.println("error on comportIdentifier");}

After executing the first line portList is empty and 2 lines later a
NoSuchPortException is thrown -
it seems that I did something wrong because I don't get any portIdentifiers
at all ... but after searching for hours in the internet I only found hints
where to copy the files but nothing more ...

Is there something I forgot to configure?

I would be glad if someone could help me!!

btw: I'm using WinXP

Thomas Pototschnig
Re: Eclipse + javax.comm SerialPort problem [message #53639 is a reply to message #53562] Mon, 18 April 2005 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smiley.photiczone.com

Thomas,
I think you have to load your DLL using System.loadLibrary().
-Smiley
Re: Eclipse + javax.comm SerialPort problem [message #53689 is a reply to message #53639] Mon, 18 April 2005 10:53 Go to previous message
Eclipse UserFriend
Originally posted by: thomas.pototschnig.gmx.de

> I think you have to load your DLL using System.loadLibrary().

Thanks for the tip - but know I get this message:
Error loading win32com: java.lang.UnsatisfiedLinkError: Native Library
C:\Programme\Java\jdk1.5.0_02\jre\bin\win32com.dll already loaded in another
classloader

It seems that my dll is loaded - but I still don't get portIdentifiers ...
Previous Topic:Tutorials
Next Topic:how to set default search tab ?
Goto Forum:
  


Current Time: Fri Apr 25 21:48:00 EDT 2025

Powered by FUDForum. Page generated in 0.04865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top