as running any exe file or something..??
+2
A:
Make an executable JAR file:
http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
Amber
2010-05-02 11:57:28
Java Web Start is the more modern / robust version of this.
Sean Owen
2010-05-02 12:16:54
@Sean: Seeing his other questions on the Java subject, JWS is probably far beyond his actual intent and understanding. An executabele JAR is the most straightforward choice here.
BalusC
2010-05-02 13:39:36
... but this would not be double-clickable like an .exe. A JWS file would.
Sean Owen
2010-05-02 16:03:28
Not true, Sean. On most systems executable JARs are double-clickable as long as a JRE is installed.
Amber
2010-05-02 19:33:03
+1
A:
You can create an executable with one of the following:
Scott Bennett-McLeish
2010-05-02 12:07:32
You can create desktop icon to launch Java app without repackaging it as exe. Depending on what OP actually wants, this may be overkill.
Jonik
2010-05-02 12:11:29
for example i want to send this file to some one.. he/she must have the java library on his/her computer right..??
WM
2010-05-02 12:15:18
@WM, If you want to create a file that can be executed regardless of whether there's JRE installed, then indeed you should look at tools that can create an exe with bundled JRE, such as Launch4j or exe4j mentioned by Scott.
Jonik
2010-05-02 12:20:20
+2
A:
Use Java Web Start to package and deploy your application on a web server.
During launch, It will create desktop shortcuts that can connect to a server and update your application if updates are found.
It also has other advantages, like the fact that it can ensure that you have the right virtual machine, and download the right one in case you don't
Mario Ortegón
2010-05-02 12:11:26