running applet from jar works, in browser does not

Trying to get an applet working and it works fine when executing from the jar (java -jar stuff.jar).

Trying to get this up in a browser will give difficulties in finding some other classes in the same jar.

All is running on the same machine. Code and archive tag are set.

Is this a common problem? Any idea how to tackle this?

[360 byte] By [lelie] at [2007-9-26 3:32:48]
# 1
I don't get this. It works OK running from java. But you have written an applet. Unless you have written a combined console app/applet, an applet won't execute if run with java.Perhaps you should post the code.
alan.mck at 2007-6-29 12:00:42 > top of Java-index,Archived Forums,Java Programming...
# 2

Thank you for your reply.

You are right. The class combines an applet and an application. Depending on how you access it, it will execute the related parts.

Both applet and app will try to access objects in another application (on same machine), which works with the app, but not with the applet. I got the hint that there may be an issue with the .ser file. I am following that idea right now. Have to do some reading and testing ...

lelie at 2007-6-29 12:00:42 > top of Java-index,Archived Forums,Java Programming...