Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2008
    Posts
    15
    Rep Power
    0

    Default can't run app outside netbeans

    right, I've created a "Java application" and it runs fine inside java which has a frame as a main class. however when I try to open it using an html file it won't open (I get an X)

    my html code:

    <HTML>
    <TITLE>
    It is HTML to my first applet
    </TITLE>
    <APPLET code="NewJFrame.class" WIDTH=300 HEIGHT=400>
    </APPLET>
    </APPLET>
    </HTML>

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    it's not an applet. you need to make it an applet.

  3. #3
    Join Date
    Nov 2008
    Posts
    15
    Rep Power
    0

    Default

    Quote Originally Posted by emceenugget View Post
    it's not an applet. you need to make it an applet.
    do I need to start over or is there a way to make a java app into an applet?
    Last edited by yuriythebest; 12-14-2008 at 07:55 PM.

  4. #4
    Join Date
    Nov 2008
    Posts
    15
    Rep Power
    0

    Default

    nvm figured out you can just open the jar file and it will work! thanks anyways!

  5. #5
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    i honestly don't know. i haven't used either applets or swing myself. i'm sure that most of your code will remain the same and that it's just learning the applet api in comparison to that of swing.

  6. #6
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

Similar Threads

  1. help with netBeans
    By the godfather01 in forum NetBeans
    Replies: 11
    Last Post: 02-01-2009, 05:48 PM
  2. cannot run web app with Netbeans
    By CirKuT in forum New To Java
    Replies: 5
    Last Post: 10-28-2008, 04:48 PM
  3. Ant outside of netbeans
    By ProbablyX in forum NetBeans
    Replies: 0
    Last Post: 02-14-2008, 08:06 PM
  4. NetBeans 5.5.1 Help.
    By padutch2 in forum New To Java
    Replies: 6
    Last Post: 12-03-2007, 04:01 AM
  5. netbeans 64 bit
    By caspermel in forum NetBeans
    Replies: 1
    Last Post: 06-26-2007, 11:29 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
  •