Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java Security help!

0 views
Skip to first unread message

Paul Tr

unread,
Mar 18, 2003, 4:40:48 PM3/18/03
to
Hi,
I am new with Java. I creat an Applet to communicate with serial Port.
I compiled the program without any error but when I run the applet
with applet viewer I have these errors:

java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:108)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:373)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
at sun.applet.AppletPanel.run(AppletPanel.java:293)
at java.lang.Thread.run(Thread.java:484)


Could someone please help ! T
Thank you very much!

Paul

Nico Erichsen

unread,
Mar 21, 2003, 9:56:12 AM3/21/03
to
Paul Tr wrote:
> Hi,
> I am new with Java. I creat an Applet to communicate with serial Port.
> I compiled the program without any error but when I run the applet
> with applet viewer I have these errors:
>
> java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener

You need the java comm package (javax.comm.*) for that. Afaik this
package is not even in the standard JDK distribution, so you will hardly
have a chance to find it in an applet environment.

BTW: this is OT here , x-post & f'up

Nico

Paul Tr

unread,
Mar 25, 2003, 1:40:24 PM3/25/03
to
Hi Nico;
I already make it works for java application, but when I convert it to
applet I always got these errors. Is it something deal with security?

Paul


Nico Erichsen <nico.new...@gmx.de> wrote in message news:<3E7B280C...@gmx.de>...

0 new messages