# jar problems

Kamran Iranpour (kamran@norsar.no)
Tue, 29 Sep 1998 17:32:04 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Shawn31669@aol.com: "please help me"
- Previous message: Jan Luehe: "Re: signed applet"

Sorry if it is not the right place but I am desparate.
Earlier I sent a mail to you where I had problms with my
signed applet where several classes were included in the jar file.
Then the applet didn't work, saying that it can't load
the other classes than the applet class itself. I thought
that maybe it had to do with signing a jar file.
But later I tried the jar file without signing and it turns
out that it has to do with the jar file itself but I can't figure
out what. These are the steps I take after compiling my program:

jar cf demo.jar Seismic.class Navigate.class ClockPanel.class *.gif

the html file

------------------------------------

testing

# Java Security Example: Writing Files

-----------------------------------

and this is the error message

----------------------------------------

java.lang.IllegalAccessError: ClockPanel.<init>()V
at Seismic.<init>(Compiled Code)
at sun.applet.AppletPanel.createApplet(Compiled Code)
at sun.applet.AppletPanel.runLoader(Compiled Code)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
------------------------------------------

Seismic is the applet class itself and ClockPanel is one of
the auxiliary classes I use to send clock information to
the applet and is of course included in the jar file.
What am I doing wrong ? Does it have to do with my classpath ?

I keep hearing on the newsgroups that the jar file should be
included in the classpath but how ?

Thanks a lot in advance

Kamran Iranpour

- Next message: Shawn31669@aol.com: "please help me"
- Previous message: Jan Luehe: "Re: signed applet"