views:

155

answers:

1

When compiling a '.java' file it will create a new '.class' file, which is not a pure binary file. To run this file you need an interpreter called 'java'. Is there a way to convert this '.class' file to a binary file? In which you don't need another program to run?

F.ex './filename' in Linux.

Sorry for my bad english.

-Henrik

+4  A: 

What you need is GCJ,

http://gcc.gnu.org/java/

ZZ Coder
I'm sure there are other possible solutions, but this is one, and seemingly a good one (I've used programs compiled with it, but never created one myself). +1
rmeador