aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Making swing app as standalone program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Making swing app as standalone program" Watch "Making swing app as standalone program" New topic
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: 10451
    
    8

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)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

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..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

No, that would be JRE (Java Runtine Environment). The JDK is only needed if you're a developer.


indeed, nice catch rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making swing app as standalone program