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 06-27-2007, 09:43 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
javax.comm:Error instantiating class com.sun.comm.Win32Driver
I use winXP and JDeveloper as IDE
I have to communicate comm port from my computer with other port comm from the same computer.
The thing that I write with comm4, it has to be read by comm5.
I've downloaded javacomm20-win32 api and I've followed the instructions:
1.- C:\>copy c:\commapi\win32com.dll to c:\jdk1.1.6\bin
2.- C:\>copy c:\commapi\comm.jar c:\jdk1.1.6\lib
3.- C:\>copy c:\commapi\javax.comm.properties c:\jdk1.1.6\lib
4.- C:\>set CLASSPATH=c:\jdk1.1.6\lib\comm.jar

When I execute this program:


Code:
package Olentzero; import java.util.Enumeration; import javax.comm.CommPortIdentifier; public class CoMBilaketa { public static void main(String args[]) { Enumeration ports = CommPortIdentifier.getPortIdentifiers(); while (ports.hasMoreElements()) { CommPortIdentifier port = (CommPortIdentifier)ports.nextElement(); String type; switch (port.getPortType()) { case CommPortIdentifier.PORT_PARALLEL: type = "Parallel"; break; case CommPortIdentifier.PORT_SERIAL: type = "Serial"; break; default: /// Shouldn't happen type = "Unknown"; break; } System.out.println(port.getName() + ": " + type); } } }
this error appears:
Code:
java.io.IOException: Error instantiating class com.sun.comm.Win32Driver com.sun.comm.Win32Driver at javax.comm.CommPortIdentifier.loadDriver(CommPortI dentifier.java:239) at javax.comm.CommPortIdentifier.<clinit>(CommPortIde ntifier.java:109) at Olentzero.CoMBilaketa.main(CoMBilaketa.java:10) Exception in thread "main" java.lang.UnsatisfiedLinkError: isSessionActive at com.sun.comm.SunrayInfo.isSessionActive(Native Method) at com.sun.comm.Portmapping.registerCommPorts(Portmap ping.java:155) at com.sun.comm.Portmapping.refreshPortDatabase(Portm apping.java:100) at javax.comm.CommPortIdentifier.<clinit>(CommPortIde ntifier.java:138) at Olentzero.CoMBilaketa.main(CoMBilaketa.java:10) Process exited with exit code 1.
any ideas?
any suggest?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-05-2007, 06:09 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
java.lang.UnsatisfiedLinkError: isSessionActive
you don't have some library in the path
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 04:31 PM
Member
 
Join Date: Feb 2008
Posts: 1
bhujang09 is on a distinguished road
hai
hello help
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 11:41 PM
Member
 
Join Date: Jan 2008
Posts: 14
Joe2003 is on a distinguished road
I spent ages trying to get it working, ended up using the rxtx class and was much better, still ended up writing tons of code to get it working
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
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
Error: javax.servlet.ServletException: Column not found barney JavaServer Pages (JSP) and JSTL 1 08-07-2007 09:20 AM
Error: javax.swing.AbstractButton cannot be applied to... barney AWT / Swing 1 08-01-2007 08:10 AM
javax/comm/SerialPortEvent musiigedeo Threads and Synchronization 8 07-25-2007 12:36 PM


All times are GMT +3. The time now is 04:02 PM.


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