jar to exe

I have a swing application , I convert it into jar ,but after that how could Imake exe from that ?
[112 byte] By [satyabrata_majumder06a] at [2007-10-2 21:48:42]
«« best ide
»» best ide
# 1
Sorry, you simply can't.The best thing you can do is to creare a batch file that launches the JAR or create a C application that forks and launches the JAR, but no more then that.
SimonePezzanoa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 2

I used this new clever website called google. What it does is goes over all websites it can find and stores all posible keywords for that page, then when people incert a keyword that they want to look for, it displays a big long list of results. It's really clever, i don't know why people didn't do something like that years ago.

http://www.google.com

search params: jar to exe

1st result: http://mpowers.net/executor/

Ken_Sa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 3

I thought of the problem from a wider point of view.

That software you linked, simply creates an EXE launcher. It needs a runtime enviroment as it is not machine compiled.

Maybe I "made a step longer then my leg", but I thought the question was, "how can I compile for win" which implies "how can I do without a JVM".

Sorry

SimonePezzanoa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 4
I wasn't flaming you, I just wanted to make a point to the OP that using google before posting was always a good idea. As it happens, compiling java to native code is also possible, though not generally discussed in polite conversation.
Ken_Sa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 5
Hi man!Don't hassle anymore around. Just go to www.exe4j.com and download this cool prog.CU.Regards, John.--
John_Astralidisa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 6

> Sorry, you simply can't.

> The best thing you can do is to creare a batch file

> that launches the JAR or create a C application that

> forks and launches the JAR, but no more then that.

not so. you can create executable jar files that will invoke the method of your choice in a class of your choice when run

there are tools that allow you to wrap jars up in executables, as well

georgemca at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 7
Can you plz tell me the procedure
satyabrata_majumder06a at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 8

hi!

do not mind, is your jar executable? when one double click on your created jar file does it starts? if so then you have done to the limit of the given scope of sun. if it does not runs and says "Failed to load Main-Class" then you need to learn how to use the jor command. i am from kolkata as well. if you want you can call me.

:)

Aniruddha

Aniruddha-Herea at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 9
http://www.google.comsearch params: executable jar1st result: http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
Ken_Sa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 10

The Java Native Interface (JNI) was designed to instantiate the JVM in an exe (therefore run a Java programme) and implement exe/dll s from Java programmes.

Often JNI is not straitforward to use though.

>>compiling java to native code is also possible, though not generally discussed in polite conversation

Good Thinking Ken S:-)

bamkin-ov-lestaa at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 11
Hi Aniruddha,if u have a proper answer then tell me
satyabrata_majumder06a at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...
# 12
exe4j is a good software thanks !
satyabrata_majumder06a at 2007-7-14 1:04:26 > top of Java-index,Desktop,Core GUI APIs...