Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-09-2003, 08:38 PM   PM User | #1
Grant Palin
Regular Coder

 
Join Date: Jun 2002
Location: Victoria, BC, Canada
Posts: 962
Thanks: 0
Thanked 1 Time in 1 Post
Grant Palin is an unknown quantity at this point
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 07:11 PM..
Grant Palin is offline   Reply With Quote
Old 12-11-2003, 05:48 PM   PM User | #2
djdante97
New Coder

 
Join Date: Dec 2002
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
djdante97 is an unknown quantity at this point
Actually, that is one of the primary differences between Java applications and applets. Applications can not run a browser, only applets can.
djdante97 is offline   Reply With Quote
Old 12-11-2003, 09:39 PM   PM User | #3
Grant Palin
Regular Coder

 
Join Date: Jun 2002
Location: Victoria, BC, Canada
Posts: 962
Thanks: 0
Thanked 1 Time in 1 Post
Grant Palin is an unknown quantity at this point
I seem to remember reading that an application can be run as an applet...isn't that right?
Grant Palin is offline   Reply With Quote
Old 12-11-2003, 10:23 PM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,233
Thanks: 4
Thanked 81 Times in 80 Posts
Spookster will become famous soon enough
Quote:
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 12-12-2003, 09:21 PM   PM User | #5
Celtboy
Regular Coder

 
Join Date: May 2002
Location: Virginia, USA
Posts: 620
Thanks: 0
Thanked 6 Times in 6 Posts
Celtboy is an unknown quantity at this point
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 ......
Celtboy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:00 AM.


Advertisement
Log in to turn off these ads.