com.sun.comm.Win32Driver (javax.comm)
Hi all,
I am writing an Applet which communicates with the serial ports. When i executed the Applet it was giving access denied error (for properties and javax.comm). Then I changed the security policy file to:
grant {
permission java.security.AllPermission;
};
This time it was giving the below error:
Caught java.lang.NullPointerException: name can't be null while loading driver com.sun.comm.Win32Driver
But the Applet execution didnt terminate.
CommPortIdentifier.getPortIdentifiers() is not returning anything.
Can anybody plz help me, as i dunno y da problem is coming.
I would appreciate if any1 could mail me the solution to cdi_wajid@yahoo.com
Thanks in advance,
-Waj.
> I am writing an Applet which communicates with
> with the serial ports.
This is extremely unlikely to work. If you can make it an application, you should be able to get it working. If you think you need an applet, you need to think again, as communicating with a machine's serial ports is about as far away from what applets were meant for as possible.
> I would appreciate if any1 could mail me the solution
> to cdi_wajid@yahoo.com
Not bloody likely.
> This is extremely unlikely to work.
Funny, it's working in my applet right now.
> If you think you need an applet, you need to
> think again, as communicating with a machine's serial
> ports is about as far away from what applets were
> meant for as possible.
Oh? And why limit ourselves by the limited vision of the designers?
Do you not see a use for this in a closed lab environment? The operators are not tech-savvy; you need a pretty, fast-responding (e.g., client-side) Web-based interface with a minimum of programming time; you have serial-port based hardware with which to interface; you control the server side and the client side.
I can't think of a better tool for the job, regardless of intended use.
> > I would appreciate if any1 could mail me the
> solution
> > to cdi_wajid@yahoo.com
>
> Not bloody likely.
EENIE MEENIE CHILI BEANIE, LET THE LINKS BE THE JUDGE!
http://forum.java.sun.com/thread.jsp?thread=94749&forum=52
http://forum.java.sun.com/thread.jsp?forum=8&thread=14209