• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make .exe file in java swing  RSS feed

 
Saurav Suman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello buddy anyone can help me
i want to make .exe set up in java swing, i had made .jar but i need a .exe format to install in any system.

so, please help me
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do take out time to CarefullyChooseOneForum The forum you have posted in, is for Servlets. I will move this topic over to a more appropriate forum for you.

Saurav Suman wrote: but i need a .exe format to install in any system.

You have it wrong. .exe is limited to Windows platform. .exe extension won't work as "executables" on non windows platforms.
 
Saurav Suman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it helpful to make executable file in java swing
 
Saurav Suman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Please do take out time to CarefullyChooseOneForum The forum you have posted in, is for Servlets. I will move this topic over to a more appropriate forum for you.

Saurav Suman wrote: but i need a .exe format to install in any system.

You have it wrong. .exe is limited to Windows platform. .exe extension won't work as "executables" on non windows platforms.



it is a window based apps, developed in java swing and awt
 
Saurav Suman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me i am a leaner
i can make executable file (.exe) in java swing or not ?

my program is running through single click on .bat file, but i want to make a .exe file all in one , so if anyone know about it then help me please, all the code are developed in java swing and awt
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if it's Windows-only, what benefit would there be in making an .exe file? That's what double-clickable jar files are for. (And just to be clear, for most practical purposes the answer is "no, you can't do that", nor, I suspect, do you actually want to do that, even if right now you still think you do :-)
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saurav Suman wrote:is it helpful to make executable file in java swing

You cannot "make executable file" in java swing. Like I mentioned before exe files will tie you down to the windows platform. Since Java is platform independent, the recommended approach is self executable jar files which you mentioned you already have. Just like any "exe", this jar can be double clicked to bring up the application (provided JRE is installed)

Frankly speaking, what you are posting here is a bit confusing for me. What exactly is the problem you are trying to solve here?
 
Saurav Suman
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Saurav Suman wrote:is it helpful to make executable file in java swing

You cannot "make executable file" in java swing. Like I mentioned before exe files will tie you down to the windows platform. Since Java is platform independent, the recommended approach is self executable jar files which you mentioned you already have. Just like any "exe", this jar can be double clicked to bring up the application (provided JRE is installed)

Frankly speaking, what you are posting here is a bit confusing for me. What exactly is the problem you are trying to solve here?


i want to make setup file like as any software(jdk setup, vlc media player), which can be run any system copy a setup file(one file), and can run in own system.
Basically like as any software/tools setup file(in .exe format)
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are various Java installers available; install4j, izpack, advanced installer for java etc. Searching for "java installer" will find more.
 
Nam Ha Minh
Ranch Hand
Posts: 515
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should be easy. There are several tools out there to help you like Ulf mentioned. Also, I used JLaunch in the past and it's quite good.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!