• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Comm Api

 
Tony Combe
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I�ve been having problems installing the java communications api (javacomm20-win32) on my laptop and I was wondering if anyone can give me some advice. So far I�ve done exactly what the instructions said to do but every time I run the BlackBox example program I get the message No Serial Ports Found. The laptop is running XP home edition and this is where I�ve put the various files that are required to run the comm api.

Win32.dll
C:\windows\system32\win32com.dll (I put this here from a different set of instructions but I left it here as I assumed that it won�t cause any problems)
C:\j2sdk1.4.0_03\bin\win32comm.dll
Comm.jar
C:\j2sdk1.4.0_03\lib\comm.jar
C:\j2sdk1.4.0_03\jre\comm.jar (this was also put here from non sun instructions but I left it in for the same reason as the win32comm.dll file)

Also there is a comm.jar file that came with netscape at
C:\program files\netscape\netscape\chrome
Javax.comm.properties
C:\j2sdk1.4.0_03\lib\javax.comm.properties
User Enviroment Variable
ClassPath
.;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\lib;c:\j2sdk1.4.0_03\jre\bin;c:\j2sdk1.4.0_03\jre\lib\comm.jar
System Enviroment Variable
ClassPath
.;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\lib;c:\j2sdk1.4.0_03\jre\bin

Path
c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
I noticed that another thread has the same topic but I can not find the commapt.jar that is mentioned there.

Tony
 
Tony Combe
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I�ve finally got the java comm api working, if it helps anyone I�ve put my setup below , there are some files in my setup that are definatley in the wrong place but as they are not doing any harm (as far as I can tell) I�m just leaving them in as I don�t want to mess with it and find the comm api does�nt work anymore so heres the setup with a few unnecessary files also included.

Windows XP Operating system.
Win32com.dll
C:\windows\system32
C:\<JDK>\bin
Comm.jar
C:\<JDK>\lib
C:\<JDK>\jre\lib
C:\<JDK>\jre\lib\ext
Javax.comm..properties
C:\<JDK>\lib
C:\<JDK>\jre\lib
User Enviroment Variables
ClassPath
c:\j2sdk1.4.0_03\jre\lib\comm.jar;.;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\lib;c:\j2sdk1.4.0_03\jre\bin
System Enviroment Variables
ClassPath
.;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\lib;c:\j2sdk1.4.0_03\jre\bin
Path
c:\j2sdk1.4.0_03\bin;c:\j2sdk1.4.0_03\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!