This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

how to create exe on windows to run a Swing programm  RSS feed

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i have developed calculator using swings..now i want to develop exe so that it can be directly run from desktop...anybody can help me out..
thanks in advance
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To make a executable class file u need some Third party tool....well otherwise u can create executable Jar file very easily.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by nish vats:
Actually i have developed calculator using swings..now i want to develop exe so that it can be directly run from desktop...anybody can help me out..
thanks in advance


Check out JSmooth
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nish,
I think don't go for exe.Make a batch file,and write ur file name there which all u want to execute.
Just click on ur batch file that works fine.I m suggesting what i have used.
Bye.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nish,

For your application, a tool something simple like Java Launcher is the better option. It is simple to use with option to create a Windows executable or an executable jar, Option to change the icon etc.

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nish,

To my point of view, just few java applications really need to be converted to an executable. If an application had really required to be a 'real' executable, one should have take the decision during design time... and switch to C++ or other compiled languages developement.

Most of newcomers to java actually ask for a way to make their java application look like native (mostly windows) ones. This can be achieve to a point by java launchers or smart installers.

So, may I suggest you to check theses launchers:

- http://www.syncedit.com/download_javalauncher.html
- http://www.duckware.com/jexepack/index.html
- http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm

or to use this free smart installer
Best regards,
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest making it an executable jar or use Java Web Start. Java Web Start enables automatic upgrading of the program when a new version is loaded in the server/source web site.
[ February 15, 2005: Message edited by: Tanveer Rameez ]
 
BWA HA HA HA HA HA HA! Tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!