Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I compile by .java file directly into machine language instead of Java bytecode?

0
Posted

Can I compile by .java file directly into machine language instead of Java bytecode?

0

Yes, if you have gcj type one of the following at the command prompt % gcj –main=HelloWorld HelloWorld.java % gcj –main=HelloWorld HelloWorld.class This will create an executable named a.out or HelloWorld.exe depending on your operating system. You can then run the program by typing a.out or HelloWorld instead of java HelloWorld.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123