Results 1 to 3 of 3
  1. #1
    joshy150 is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default Applet NullPointerException

    hi,

    i would like to start an applet on my web server(Debian,apache2) with html.
    The following error occurs:

    java.lang.NullPointerException
    at sun.plugin2.applet.Plugin2Manager.findAppletJDKLev el(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Ausnahme: java.lang.NullPointerException

    Strangely the same applet works on a windows pc with apache2. There is no difference.

    Can it be the code?
    Or is it something with permissions?

  2. #2
    joshy150 is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default

    I more or less solved the problem. I am not sure if it was a bug in the java runtime or another sort of problem. However a update of the jre solved the problem.

    Now I have another problem. There are NoClassDefFound Errors although i added the .jar files in the Applet Tag correctly.

    The applet works on the XP-Apache2-Server.
    I dont know what to do.

    Thanks

  3. #3
    Tshegofatsom is offline Member
    Join Date
    Apr 2009
    Location
    Pretoria, Gauteng, South Africa
    Posts
    43
    Rep Power
    0

    Default

    I sometimes get the same error but when I run the applet again, then the jar loads
    Tshegofatso Manakana
    a.k.a Untouchable

Similar Threads

  1. Replies: 1
    Last Post: 11-25-2009, 07:48 AM
  2. Replies: 2
    Last Post: 09-29-2009, 04:33 PM
  3. Calling another applet on click of button in one applet
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 02-19-2009, 01:54 PM
  4. ERROR: nullPointerException in applet
    By barney in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 08:11 AM
  5. Replies: 4
    Last Post: 06-08-2007, 07:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •