NullPointerException Applet

I am working on a game in an applet. It works fine in Eclipse, but when I sign it and load it into my browser, it throws a NullPointerException with no further information. What can I do?

+3
java nullpointerexception applet


source to share


2 answers


You don't give very much information here, but I can assume that you are calling getAppletContext

and it returns null because the Java browser implementation is broken. Try an applet viewer and try another browser and see if it works there.



+1


source to share


It happens to me once. You need to go to:

  • Configure Java.
    • Safety.
    • List of exclusions
    • Edit the list adding your applet's directory.


This, I think, should solve the problem!

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics