Results 1 to 6 of 6
  1. #1
    Chezelle is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

    Default ClassNotFoundException

    Hello,

    I'm pretty new to Java and am having a problem getting applets to open.
    I use Internet Explorer and Firefox as my browser with XP but switched to Google Chrome. After I switched to GC the applet wouldn't open only in Google Chrome but still worked fine in IE and FF. It also never showed any type error in GC. I had been using an older version of Java so I upgraded to version 6 update 11 today and ever since I did that the applets won't open in any of my browsers. I get the following error only when trying to open them with IE or FF. No error or opening when I try Google Chrome.

    java.lang.ClassNotFoundException: JreTest.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)

    Theres a lot more but this website won't let me post links since I'm a newbie?


    Any help appreciated.

    Thanks,
    Brian
    Last edited by Chezelle; 12-20-2008 at 02:03 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm not a GC user. But there should be an option to make browser Java enable, like we do on Firefox and IE. Did you check that?

  3. #3
    Chezelle is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

    Default

    Yeah I doubled checked everything and everything is enabled. I feel like it may be a problem with the classpath.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes, since you have enable Java on the browser, the next step is additional libraries used. Seems you must use addition libraries. If you are using additional libraries you must add them in the classpath.

  5. #5
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    282
    Rep Power
    6

    Default

    As said above make sure you have all the required class files, and make sure the JRE settings for applet is correct.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Replies: 4
    Last Post: 03-31-2010, 12:08 PM
  2. Replies: 0
    Last Post: 07-09-2008, 12:36 PM
  3. java.lang.ClassNotFoundException
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-07-2008, 10:31 AM
  4. Replies: 1
    Last Post: 07-23-2007, 11:54 PM
  5. Replies: 1
    Last Post: 06-27-2007, 05:57 PM

Posting Permissions

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