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

[271 byte] By [Raheal_Maza] at [2007-11-27 11:28:01]
# 1

http://forum.java.sun.com/thread.jspa?threadID=5198082

yawmarka at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 2

http://www.google.com/search?q=java+exe

yawmarka at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 3

> 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?

_helloWorld_a at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 4

yes i am aware i can use create jar file, but i want my program to run on windows.

Raheal_Maza at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 5

> 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 ;-)

BigDaddyLoveHandlesa at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 6

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?

Raheal_Maza at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 7

> 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.

_helloWorld_a at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 8

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?)

Raheal_Maza at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 9

> 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?

BigDaddyLoveHandlesa at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 10

sorry dude, i lost you. But hey it doesn't matter. Thanks for your help. Very much appreciated

Raheal_Maza at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 11

> sorry dude, i lost you.

Other way 'round, I'm afraid.

~

yawmarka at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...
# 12

I think you may be happier with .NET. You can easily whip up an installer: msi + exe.

BigDaddyLoveHandlesa at 2007-7-29 16:19:32 > top of Java-index,Java Essentials,New To Java...