Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post

    Running a java program as an application

    I know you can run a java application from a webpage the same as you would for an applet. What do you have to do to get it to work? I can get an applet to work, but not an application.

    For example, when I try to run an application, it doesn't load. The status bar at the bottom says "Applet Lab01/Lab1Demo notinited". If it means it needs an init method, it's in the program. And the program runs fine if I just execute it, not through a webpage.

    Any suggestions?

    <edit>I didn't phrase this very well. I have a Java program that runs fine as a standalone application, but I want to run it as an applet.</edit>
    Last edited by Grant Palin; 12-10-2003 at 08:11 PM.

  • #2
    New Coder
    Join Date
    Dec 2002
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually, that is one of the primary differences between Java applications and applets. Applications can not run a browser, only applets can.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    I seem to remember reading that an application can be run as an applet...isn't that right?

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by Grant Palin
    I seem to remember reading that an application can be run as an applet...isn't that right?
    Only if you redesign it into an applet. An applet has to be written in a certain way in order to run in a browser.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    Regular Coder
    Join Date
    May 2002
    Location
    Virginia, USA
    Posts
    621
    Thanks
    0
    Thanked 6 Times in 6 Posts
    exactly. certain methods (functions) must be implemented in the code to support rendering output to the applet.

    Now, if you wanted to know how to compile a java console application into a .exe ......


  •  

    Posting Permissions

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