Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: the infamous null pointer applet problem

  1. #1
    Member wolfgar's Avatar
    Join Date
    Oct 2009
    Location
    the middle of the woods
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default the infamous null pointer applet problem

    i set up a applet and it worked just fine when i ran it from eclipse , but now that i embedded it in a web page i get a major error , any way i could fix it

    things i have tried
    turned on the next generation applet support
    self signed the applet
    and tried lots of different combos of the html tags to get the least amount of errors possible

    heres a link to the applet and source
    the applet page
    the source zipped

    and heres the full list of errors i got when i tried to run it

    java.lang.NullPointerException
    	at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
    	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException
    Last edited by wolfgar; February 22nd, 2010 at 05:35 PM.
    Programming: the art that fights back


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: the infamous null pointer applet problem

    It looks like the server you're trying to run your applet on doesn't have all of the necessary class files. Make sure you put everything on there, including an external libraries that you used.

  3. #3
    Member wolfgar's Avatar
    Join Date
    Oct 2009
    Location
    the middle of the woods
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: the infamous null pointer applet problem

    now that u mention it ( and looking through everything for something that might have been left out )
    i'm almost certain thats what it is

    but how do i get the applet to look for the resource inside of the jar file thats already there
    i recompiled with the missing library included in the jar but it still didnt run properly
    Programming: the art that fights back

Similar Threads

  1. JComboBox null pointer Exception error
    By F_Arches in forum AWT / Java Swing
    Replies: 2
    Last Post: November 29th, 2009, 02:32 PM
  2. Null Pointer Exception
    By MysticDeath in forum Exceptions
    Replies: 2
    Last Post: October 24th, 2009, 02:49 PM
  3. NullPointerException:null problem
    By derky in forum Exceptions
    Replies: 8
    Last Post: September 18th, 2009, 04:06 PM
  4. applet and JPS problem.... please help me
    By rockster14 in forum Java Applets
    Replies: 0
    Last Post: August 7th, 2009, 04:59 PM
  5. Getting Null Pointer Exception in runtime
    By RoadRunner in forum Exceptions
    Replies: 1
    Last Post: April 26th, 2009, 02:21 PM