This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Communications API error on JRE Environment  RSS feed

 
Jayson Schultz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently trying to develop a program utilizing Sun's Java Communications API (javax.comm). The program in question runs fine on my laptop where I have JDK 1.4.2_05 installed along with JRE 1.5.0_01 but when I try running it on a desktop computer with only JRE 1.5.0_01 installed, I get ...

Exception in thread "main" java.lang.NoClassFoundDefFoundError: javax/comm/UnsupportedCommOperationException

I have placed the following files in the following locations on the desktop computer...
JREPATH/lib/comm.jar
JREPATH/lib/javax.comm.properties
JREPATH/bin/win32com.dll

Also, here are my path statements on both my laptop and my desktop. While you will notice that the Desktop does have the Novell Client installed, I did try removing that temporarily and noticed no change...

Desktop Path (Only JRE)
--------------------------------------------
"C:\Program Files\Java\jre1.5.0_01\lib\mysql-connector-java-3.1.7-bin.jar";
"C:\Program Files\Java\jre1.5.0_01\lib\comm.jar";
"C:\Program Files\Java\jre1.5.0_01\lib\";
"C:\Program Files\Java\jre1.5.0_01\bin\";
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SystemRoot%\system32\nls;
%SystemRoot%\system32\nls\ENGLISH;
C:\Program Files\Novell\ZENworks\;
C:\Program Files\Common Files\Adaptec Shared\System;

Laptop Path (JDK 1.4.2_05 and JRE 1.5.0_01)
--------------------------------------------
C:\Program Files\Common Files\Sonic Shared;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
C:\j2sdk1.4.2_05\lib\comm.jar;
"C:\Program Files\Java\jre1.5.0_01\lib\mysql-connector-java-3.1.7-bin.jar";
"C:\Program Files\Java\jre1.5.0_01\lib\";
C:\j2sdk1.4.2_05\bin;
C:\Program Files\Executive Software\Diskeeper\;
C:\Program Files\ATI Technologies\ATI Control Panel

If anyone could help provide some about this and how they have their paths configured on stations with only a JRE, I would be most appreciative.

Regards;

Jayson Schultz
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Other Java APIs...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!