Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 06:26 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
javax/comm/SerialPortEvent
Hey guys
when I try to execute my jar file, I do get the error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener

It seems that i cannot find the class javax.comm.SerialPortEventListener
but I have in the manifest file included the line "Class-Path: comm.jar". what am I doing wrong guys?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-23-2007, 06:46 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
I tried to use Java Communicaions API before. The bad news is that most of the installation instructions which basically described which file (dll, jar and a properties file as far as i remember) to copy where, are not working But the good news is that i know one of them working. But i don't remember which one is that. Try them and let us know the result.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-23-2007, 07:05 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
I have the following manifest file

Manifest-Version: 1.0
Archive-Sealed: true
Class-Path: comm.jar win32com.dll
Main-Class: net.java.dev.a_jar_stdio_terminal.StdioTerm

I have comm.jar in c:\...jre\lib\ext
win32com.dll in c:\...jre\bin
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-23-2007, 07:30 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
I have tried all the installations i could find on the net. Which advise would you have for me?
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-23-2007, 09:23 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Sorry about hat, i am not using that library currently and i can't test them myself..

But what about the properties file? As far as i remember there is a properties file comes with java comm. library.

And you might try to copy the files to JDK relative paths in addition to JRE as you already did.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 07-24-2007, 11:47 AM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
I have the javax.comm.properties file in C:\Programmer\JBuilder\jre\lib and C:\Programmer\JBuilder\jre\jre\lib
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-24-2007, 06:43 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
Quote:
Originally Posted by JavaBean View Post
And you might try to copy the files to JDK relative paths in addition to JRE as you already did.
I have copied comm.jar into
%JAVA_HOME%\lib
%JAVA_HOME%\jre\lib\ext

win32com.dll into
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
%windir%System32

javax.comm.properties into
%JAVA_HOME%\lib
%JAVA_HOME%\jre\lib

I've done the copying according to the java communication API

But should this affect the functionality of the jar file??

Last edited by musiigedeo : 07-24-2007 at 07:00 PM.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 07-24-2007, 07:52 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
I have found out that when I have the comm.jar file in the same directory as my jar file, then I do not get the error "Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener"

But when I try to read/write to the serial port, nothing happens... what does wrong?
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 07-25-2007, 12:36 PM
Member
 
Join Date: Jul 2007
Posts: 13
musiigedeo is on a distinguished road
I have solved my problem. I had 2 java versions on my pc
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 11-24-2008, 01:07 PM
Member
 
Join Date: Nov 2008
Posts: 1
Senencillo is on a distinguished road
I need to Know the solution. Please
I have the same problem with the comm port. How did you solve this?

When i run the program in Netbeans in mi computer there is no problem, but when i try to execute jar file from console i get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener

Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
javax.comm:Error instantiating class com.sun.comm.Win32Driver bbq Advanced Java 3 02-07-2008 11:41 PM
javax.microedition.io/ javax.bluetooth ahtiven New To Java 0 01-20-2008 03:38 PM
Comm API Usage hobbyist New To Java 0 11-16-2007 06:59 PM
javax.comm package for COM ports valery Advanced Java 1 08-07-2007 05:03 PM
map javax.swing.text.Element to javax.swing.text.View elizabeth New To Java 1 07-30-2007 09:02 PM


All times are GMT +3. The time now is 08:16 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org