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/
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
> 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
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
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:-)