user181464
user181464

Reputation:

Convert .class files to binary files?

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

Upvotes: 1

Views: 4991

Answers (1)

ZZ Coder
ZZ Coder

Reputation: 75496

What you need is GCJ,

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

Upvotes: 5

Related Questions