English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

...its a real simple one.

but i want people to be able to download it and use it just be clicking on it. ...surely this cant be THAT hard..... but i cant figure it out.... HELP PLEASE!

2006-11-16 02:56:46 · 2 answers · asked by sean_mchugh6 3 in Computers & Internet Programming & Design

2 answers

"How do I make an .EXE file from my Java application?", "Need help converting jar to exe", "Is it possible to create a Windows executable using Java?" --- these and similar questions are among the most popular topics on Java developer forums. Should you start such a topic today, you are likely to encounter the following three types of replies:
o "You cannot"
o "You should not, because that would kill the very purpose of Java"
o "You can do that with third party software X and Y"

The truth is that there exist two completely different approaches to the creation of native executables from Java applications, addressing different sets of problems. Moreover, under certain conditions some of those problems may be solved without making an EXE. So the most correct way to reply to such a post would be a request for more information, namely what is the goal of conversion to EXE. And the most frequent answer would be ..... Read More @ the link below.

2006-11-16 03:08:58 · answer #1 · answered by Farnsworth 3 · 1 0

I assume M$ Windows...
I assume you did a java application, not a java applet

either as your .jar file or zip it in a folder, .class files.
=============
For the install. zip file (self-extracting or otherwise) should suffice. You can put the JRE inside your application folders. No install is required for the JRE.

Make the most spiffy Microsoft shortcut you know how to make.

For launching the application, get to the properties in the shortcut, with the javaw command in the 'target' field, which will allow you to launch it without a command prompt (the DOS window) and allow you to specify an icon.

javaw meinUbberKillerMonsterApplication

Installers are overrated. The windows registry is a pain in the butt. I avoid both of them.

============
That will get you the Windows. For a real OS, like Linux, it is a shell command.

2006-11-16 11:16:31 · answer #2 · answered by Anonymous · 1 0

fedest.com, questions and answers