
06-24-2008, 12:19 PM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 19
Rep Power: 0
|
|
Could some plz tell me how to write a stand alone
Well the title says it just try to make it very simple so I can follow it
|
|

06-24-2008, 12:38 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
What you mean. Looking to write a standalone application?
|
|

06-24-2008, 03:42 PM
|
 |
Senior Member
|
|
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 540
Rep Power: 3
|
|
|
Quote:
|
Could some plz tell me how to write a stand alone
Well the title says it just try to make it very simple so I can follow it
|
Like a clock? it could stand alone as long as the Operating System still operates....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
|
|

06-24-2008, 07:16 PM
|
 |
Senior Member
|
|
Join Date: May 2008
Posts: 307
Rep Power: 2
|
|
be specific on what u want mr/ms quickfingers.
what type of standalone application r u looking for?
Our question is straight forward what all things do u want to implement in your application, as u know there are many ways of doing same thing like for GUi we can use swing or awt or swt or jide etc etc.
__________________
To finish sooner, take your own time....
Nivedithaaaa
|
|

06-24-2008, 07:19 PM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 45
Rep Power: 0
|
|
you mean something like this:
|
Code:
|
public class IamStandAlone {
public static void main (String[] arg) {
System.out.println("I am a stand alone program! haha");
}
} |
|
|

06-24-2008, 07:45 PM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Location: Southwest
Posts: 1,018
Rep Power: 3
|
|
|
That is a standalone, what is your question.
( fun with newbies! )
|
|

06-25-2008, 12:19 AM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Location: Ukraine,Zaporozhye
Posts: 486
Rep Power: 2
|
|
|
I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?
|
|

06-25-2008, 06:24 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
Or may be looking to create an executable file for any OS!
|
|

06-25-2008, 06:34 AM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 386
Rep Power: 2
|
|
|
put it in a jar.
__________________
My IP address is 127.0.0.1
|
|

06-25-2008, 06:51 AM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Posts: 571
Rep Power: 2
|
|
Originally Posted by serjant
|
|
I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?
|
Wow, I'd never thing of an applet/or screenlet as a standalone. I see the "hello world" as a sample, no GUI, nothing fancy.
If the OP wants something fancy, he's got to enlighten us.
|
|

06-27-2008, 06:28 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 19
Rep Power: 0
|
|
|
Well I know how to write applets very well just would like to have a stand alone run on my computer without the help of a Applet because I know how to write classes just don't know how to get it to run without needing a applet.
|
|

06-27-2008, 06:33 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
With your post I really confused. Without help of an Applet, you want to run an applet class. ???
|
|

06-27-2008, 06:48 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 19
Rep Power: 0
|
|
All I want to do is make so the person would have to download it to play instead playing online.
(Hope I am clear this time  )
|
|

06-27-2008, 06:55 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
To run an applet you need a browser, even on off line. So what you can do it, add your application in a download link, may be as a zip file. Then user have to download it and play.
|
|

06-27-2008, 06:57 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 19
Rep Power: 0
|
|
|
Thanks for the help now just need to figure out how not to make all my code visible to the user
|
|

06-27-2008, 07:03 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
Since applet use the class file your code not visible to the user directly. But using a decompiler can see the code.
|
|

06-27-2008, 07:21 AM
|
 |
Member
|
|
Join Date: Jun 2008
Location: Junee, NSW, Australia
Posts: 19
Rep Power: 0
|
|
Possible he means a program that will run by itself without needing a browser - ie a stand-alone program not an applet.
He would need to make a jar file as suggested by Zosden which could then be downloaded by a user and executed by itself.
If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.
I am not clear as to what he really wants - I think that he doesn't know either. Maybe his fingers are too quick and his brain too slow for him to be able to express himself clearly
Alan.
__________________
There are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!
Last edited by Alan-LB; 06-27-2008 at 07:24 AM.
|
|

06-27-2008, 07:31 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
Originally Posted by Alan-LB
|
|
If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.
|
I'm with you on this. Mainly I think he doesn't know what is jar file, and a source code(class file). Because I can't see any attempt on jar.
If he wants to run the application on the browser, if he puts complete code as a zip, as I suggested earlier, it's not easy to hide the code from the user.
|
|

06-27-2008, 07:33 AM
|
 |
Member
|
|
Join Date: Jun 2008
Location: Junee, NSW, Australia
Posts: 19
Rep Power: 0
|
|
|
What do you mean by "code". Are you talking about the executable program or the source code?
Alan
__________________
There are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!
|
|

06-27-2008, 07:38 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
|
|
|
I'm talking about the source code.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:03 AM.
|
|