Creating an EXE help
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.
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.
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.
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 :)
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.