Main Topics
Browse All TopicsHi frens,
When I try to run my program, I get this exception:
Exception in thread "main" java.lang.NoClassDefFoundE
I have earthmate GPS receiver attached to the serialport. Whether I plug GPS to the port or not, I get the same. I am not able to figure out if there is something wrong with the program or my serialport is not working. I tried to run it on different computers too but in vain :(
Thank you,
Seema
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The error message is from your java runtime. Your code is trying to use the javax.comm.SerialPortEvent
Since your code is obviously using that class and compiling, this must mean that your compiler and your runtime don't have access to the same set of classes. Do you compile with an additional -classpath? Is your java runtime the same version as your java compiler? Is there a default java runtime installed somewhere on your OS that is taking over when you try to run your program?
Hi,
I ran this program after installing java com package. I am using the same version for both runtime and compiler, that is, java 1.4.2_04. I initially had 2 runtime installed on my system but then i removed everything and reinstalled java 1.4.2_04 couple of weeks back. If there is another version taking control, then how do I find that? I dont compile with additional -classpath. I have set the classpath variable PATH = c:\j2sdk1.4.2_04\bin;
Thanks,
Seema
I followed whatever was given in the instructions in the Java comm package. I installed everything in JRE folder asI already mentioned in the link above. I looked in the program files but I couldn't see JRE folder where I could install all these files :(
Again,
C:\j2sdk1.4.2_04\jre\lib\e
C:\j2sdk1.4.2_04\jre\lib\j
C:\j2sdk1.4.2_04\jre\bin\w
Thanks,
Seema
I didnt get that error after putting all my files in C:\j2sdk1.4.2_04\bin\ directory. But now its only looking at the COM port and not doing anything. This is a fully ruuning program and is tested on other computer but doesnt work on this system. Is it fine if I provide more details through email at ee@objects.com.au?
Thanks,
Seema
Then may be I didnt get by what you wrote:
"another thing to try would be to use the jdk's vm explicitly:
C:\j2sdk1.4.2_04\bin\java MyClass "
I moved all the java files that I was compiling with javac. My files are GPSReceiver.java, Location.java , RockData.java, RockHeader.java, RockMessage.java, RockMessage1000.java, and Tools.java. Thanks Seema
Business Accounts
Answer for Membership
by: objectsPosted on 2004-06-14 at 21:04:31ID: 11312303
you need to install java comm.