Results 1 to 5 of 5
  1. #1
    rasen58 is offline Member
    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0

    Default Viewing JApplet in browser when compiling in NetBeans

    Hi, I have made my applet in NetBeans, and before I used netbeans and made the applet by hand, I would just make an html file and run the applet from there. However, when I do that now, I get an error in chrome that says
    NoClassDefFoundError
    ImageDisplayApplet (wrong name: org/me/cell/ImageDisplayApplet)

    I think it is because when I made it in netbeans, I made the applet in a package called org.me.cell, so how do I fix this?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,928
    Rep Power
    16

    Default Re: Viewing JApplet in browser when compiling in NetBeans

    By specifying the fully qualified class name in the HTML.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  3. #3
    rasen58 is offline Member
    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0

    Default Re: Viewing JApplet in browser when compiling in NetBeans

    So would I say, org.me.cell.ImageDisplayApplet.class?

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,928
    Rep Power
    16

    Default Re: Viewing JApplet in browser when compiling in NetBeans

    What happened when you tried?

    Note that the .class file has to be in a folder structure that reflects its package.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  5. #5
    rasen58 is offline Member
    Join Date
    Oct 2012
    Posts
    14
    Rep Power
    0

    Default Re: Viewing JApplet in browser when compiling in NetBeans

    Apparently I need to include the jar as well

Similar Threads

  1. JApplet doesn't load in browser?
    By MarioBrawler in forum New To Java
    Replies: 4
    Last Post: 06-26-2012, 12:52 AM
  2. Converting JFrame to JApplet is not showing on browser.
    By ganesh.gothi@gmail.com in forum Java Applets
    Replies: 4
    Last Post: 06-12-2012, 05:05 PM
  3. JApplet connecting to the database in browser
    By pinxrick in forum Java Applets
    Replies: 3
    Last Post: 03-22-2011, 04:12 AM
  4. japplet - jtable - browser
    By jasonnuigi in forum Java Applets
    Replies: 2
    Last Post: 12-31-2010, 02:16 PM
  5. Replies: 2
    Last Post: 01-29-2009, 07:17 PM

Tags for this Thread

Posting Permissions

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