• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making swing app as standalone program

 
mandlar suurla
Ranch Hand
Posts: 67
Debian Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11072
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that would be JRE (Java Runtine Environment). The JDK is only needed if you're a developer.


indeed, nice catch rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic