[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
caught java.lang.nullpointerexception: name can't be null while loading driver com.sun.comm.win32driver
Hi, all
I am writting an applet to open the serial port using javax.comm api. The applet is on the same machine of the serail port. I use appletviewer to run my applet. I keep getting this error:
caught java.lang.nullpointerexception: name can't be null while loading driver com.sun.comm.win32driver
Seached on the web, but still could not get any progress. Somebody said this error is due to a "Comm API" / "JDK1.2 Security Model" mismatch. Is there any way to work around it?
String drivername = "com.sun.comm.Win32Driver";
try {
CommDriver driver = (CommDriver) Class.forName(drivername).newInstance();
driver.initialize(); //error occured
} catch (myException e) {
}
Thanks a lot
Phelix
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today