Advertisement

Making an exe

Started by February 27, 2005 02:08 PM
1 comment, last by BangorRipper 19 years, 11 months ago
if i wanted to show my game to a friend of mine but he does not have java installed, can i do something eg make an exe that he can run without needing java? if so how do i make one thanks
gcj is a (somewhat incomplete) compiler for java that interprets java code into native C code, and then goes into gcc. Try getting the win32 MingW ports of gcc and gcj and it might work out. If not, I don't know, because I have never tried it. But it SHOULD work. try MingW

Granted, if you are compiling to native code, however, you effectivly eliminate all of java's advantages over C++, leaving you with non-cross-platform code that is slower than C++. (I am not trying to convince you switch languages of course, because you already have all the code written. But if distributing the java2 runtime is going to cause an issue for your projects, it might be wise to rethink the language of choice (assuming you know abother one) for use in bigger, more critical projects)


Oops, looks like gcj actually does make class files...so I guess I am wrong. However, I am almost positive I read somewhere that gcj did native compilation, so it could be an option or something...If not I am sure there are tons of native code compilers out there...good luck and keep hunting
Advertisement
I have sorted this by making a bat file that points to the required dll's and getting the other person to install java
thanks anyway :)

This topic is closed to new replies.

Advertisement