| Author |
Making swing app as standalone program
|
mandlar suurla
Ranch Hand
Joined: Jun 11, 2008
Posts: 67
|
|
|
How to make it ? So every java app needs to be have installed java. Currently i use this method: make first bath program which starts the java app. Is there any other methods? Should i pack the classes also in jar?
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8436
|
|
Originally posted by mandlar suurla: Is there any other methods?
Yes it is possible to have a stand alone application in a jar. You must ensure you provide the correct manifest file. This jar is self executing (launches the application on "double click" just like an exe)
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
So every java app needs to be have installed java.
Yes, java code needs jdk (Java development Toolkit) to run.
Currently i use this method: make first bath program which starts the java app.
which method?
Is there any other methods? Should i pack the classes also in jar?
don't know which method you talking about, for the jar question it depends on your application.. like if your creating a simple Swing application so you can make an executable jar to run this application.
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Originally posted by Muhammad Saifuddin: Yes, java code needs jdk (Java development Toolkit) to run.
No, that would be JRE (Java Runtine Environment). The JDK is only needed if you're a developer.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
No, that would be JRE (Java Runtine Environment). The JDK is only needed if you're a developer.
indeed, nice catch rob
|
 |
 |
|
|
subject: Making swing app as standalone program
|
|
|