Results 1 to 6 of 6
  1. #1
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Netbeans 6.5.1 & embedding in html page

    I am able to embed a java applet into a html page but using netbeans has totally confused me, can someone tell me exactly how to do this.

    I have tried placing the html page in the class folder but to no avail, I still get the error basically saying it cannot find the class

    Thanks for your help!

  2. #2
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Cool Netbeans 6.5 & embedding app in html page

    I still have not managed to do this, has anyone embedded a java app from netbeans into a html page please, its driving me mad

    :confused:

  3. #3
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  4. #4
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question

    I have been to that link before but I have just tried it again, came up with the same problem

    The html file when displaying cannot display the app.

    I even followed the code in the tutorial came up with

    Java Code:
    <html>
    <head>
    <title> This is a test applet </title>
    </head>
    <body>
    <APPLET CODE=frmBmi.class WIDTH=683 HEIGHT=482>
    <PARAM NAME=bmi VALUE=aGUI>
    </APPLET>
    </body>
    </html>
    The tutorial doesnt however tell me if I need the param, I have tried the Main.class and the gui class file, neither will display.

    Any ideas?

    Thanks in advance

  5. #5
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  6. #6
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Error Messages I am getting

    Now remember this app works just fine in netbeans 6.5

    I am now wanting to run the jar through the command window

    I am getting the following errors

    Exception in thread "main" Java.lang.NullPointerException
    at assessment3Bmi.frmBmi.<init><frmBmi.java:69>
    at assessment3Bmi.Main.main<Main.java:19>

    I have no idea why it is saying this as I say it works fine in netbeans

    Thanks in advance

Similar Threads

  1. How to open html page?
    By smartsubroto in forum New To Java
    Replies: 8
    Last Post: 08-16-2012, 12:13 PM
  2. Embedding Applet into HTML?
    By Unome in forum Java Applets
    Replies: 1
    Last Post: 02-21-2009, 03:40 AM
  3. redirect to html page
    By simo_mon in forum Java Servlet
    Replies: 3
    Last Post: 02-12-2009, 05:18 PM
  4. convert html page to pdf
    By MarkWilson in forum Advanced Java
    Replies: 2
    Last Post: 09-02-2008, 11:14 PM
  5. HTML page
    By bbq in forum New To Java
    Replies: 1
    Last Post: 07-05-2007, 03:46 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
  •