Creating exe files from Java files
Hi all.
I've created a Java GUI file and I want to create an exe file of it, so i can just double click on the icon and opens up..
Anyway as to how i could do this?
Hope to hear from anyone. Would be a great help
Kind Regards,
Raheal
> Hi all.
>
> I've created a Java GUI file and I want to create an
> exe file of it, so i can just double click on the
> icon and opens up..
>
> Anyway as to how i could do this?
>
> Hope to hear from anyone. Would be a great help
>
> Kind Regards,
>
> Raheal
You know you can make an executable JAR with the same behavior.
Are you using an IDE or the command line to make your JAR?
> yes i am aware i can use create jar file, but i want
> my program to run on windows.
Excutable JARs are platform-independent. Unlike exes ;-)
> Yes, but i cant double click on the jar file and run
> the program on windows. Only an exe file can do that.
> Unless you have another suggestion?
Since when?
You can make your Jar executable by specifying the main class in your manifest file and it runs just like an exe.
> right ok, but it would mean i need a Java virtual
> machine on another machine (if i needed to run the
> JAR file on another machine right?)
You keep drawing different lines in the sand:
* I want something that runs on Windows (check)
* I want something I can double-click on (check)
Now it's the JVM. What about windows EXEs that need .NET DLLs in order to run?
> sorry dude, i lost you.
Other way 'round, I'm afraid.
~