Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

name can't be null while loading driver com.sun.comm.Win32Driver

807606Feb 5 2007 — edited Feb 5 2007
"Caught java.lang.NullPointerException: name can't be null while loading driver com.sun.comm.Win32Driver"

I'm trying to acccess the serial port using the Java Communications API and I get this error. I followed these instructions to install:

1. Download and unpack the javacomm20-win32.zip file.
2. Place the win32com.dll in <jdk>\jre\bin directory (or the \jre\bin subdirectory f your current J2SDK directory.)
3. Place the comm.jar in <jdk>\jre\lib\ext.
4. Place the javax.comm.properties in <jdk>\jre\lib.
5. Do not alter the CLASSPATH.

I ran this on XP with 1.5.0 and 1.4.2 and both gave the same exception. What can I do to fix this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2007
Added on Feb 5 2007
1 comment
409 views