I am getting null pointer exception on getAppletContext(), getCodeBase(), getDocumentBase()
Stack trace is
here in init
Exception in thread "main" java.lang.NullPointerException
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
I am not getting solution.
Thanks a lot
posted 6 years ago
What's the main method doing there? You're not trying to run this on the command line, are you? Because then it wouldn't be an applet, and all applet-specific functionality couldn't possibly work.