Results 1 to 6 of 6
Thread: Creating an EXE help
- 09-26-2010, 08:59 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 3
- Rep Power
- 0
Creating an EXE help
Hello,
I'm started using Java about one week ago. I see that there is no a compiler for EXE.
My friend said I have to make an emulator or something for that.
Can somebody tell me what I have to do after finishing my program? How to create an EXE or emulator for it, all I know is how to create *.jar or *.dist files.
And do I have to know another language for that? Like C++/C# (programs which have exe compilers).
Thanks in advance.
Found the program. Solved.Last edited by funnygames; 09-28-2010 at 12:18 AM. Reason: Solved
-
The Java philosophy is to not create EXE's since that would tie the application to one OS (Windows and its variants). Instead create a Jar and distribute that. And yes, there are apps out there that will compile java apps to exe's, but it still begs the question (usually) of why one would want to do this. Sometimes there are valid reasons for this, but most often a Jar would be better.
- 09-26-2010, 10:05 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 3
- Rep Power
- 0
Ok, I do understand the idea behind this. But how will my friends play the game without installing additional programs? I know that to run a jar file, you need to have JRE installed and other program (which I don't remember its name).
Anyway, after compiling it to JAR file, what program will you recommend me to use, so I'll can create an exe, and without installing any additional programs.
I once again asked my friend, and he says that I have to create an emulator for my program, if that true, then does somebody knows how to create it, and/or maybe tutorial for it?
I'll be grateful for help. Thanks.
- 09-26-2010, 10:56 PM #4
Senior Member
- Join Date
- Nov 2009
- Posts
- 150
- Rep Power
- 12
an emulator? does your friend know what he is talking about? :p
there are two kinds of exe creating apps:
-and exe wrapper (you will still need the jvm then)
-compile to native code. there is one for free on linux (gcj) and also something for windows (jet or something like that)
but first, why would you want to do that? every modern computer has java installed on it, use it :)
- 09-27-2010, 07:54 PM #5
Member
- Join Date
- Sep 2010
- Posts
- 3
- Rep Power
- 0
I don't know what my friend is talking about, so that's why I'm asking.
Anyway, after creating a JAR file, I can't open it. Probably because the imports I'm using...
About the program you recommend me, you said that for the exe wrapper I need to intall a jvm? In that case, it's not exactly what I want.
About the second program, jet, as you mention, does it supports everything? I mean, all the libraries, and will NOT create an program errors? (ex. if I run using Java, there are not errors, but after using the exe compiler I will get errors).
Thanks for replying.
- 09-27-2010, 08:53 PM #6
Senior Member
- Join Date
- Nov 2009
- Posts
- 150
- Rep Power
- 12
Similar Threads
-
Creating jar
By nitinverma in forum AWT / SwingReplies: 1Last Post: 07-12-2010, 12:07 PM -
Need help for creating executable xml
By patilsubh in forum XMLReplies: 3Last Post: 10-01-2009, 11:54 AM -
creating archives
By almaz__ in forum Java AppletsReplies: 2Last Post: 09-27-2009, 05:30 PM -
Creating files stopped creating...
By Dieter in forum Advanced JavaReplies: 3Last Post: 09-26-2009, 12:45 AM
Bookmarks