For some weird reason I had a thought, that I should compile java code into Windows native EXE using GCJ (GNU Java compiler)
I installed MinGW (again) selecting Java compiler. Now I wrote a simple Hello World java program:
and gave command line:
This compiled and created Hello.exe. But when I run it, nothing is displayed. I searched MinGW site and nobody seems to have any problem.
What am I doing wrong ?
I installed MinGW (again) selecting Java compiler. Now I wrote a simple Hello World java program:
public class Hello{
public static void main(String args[]){
System.out.println("Hello, World!");
}
}and gave command line:
gcj Hello.java --main=Hello -o Hello.exe
This compiled and created Hello.exe. But when I run it, nothing is displayed. I searched MinGW site and nobody seems to have any problem.
What am I doing wrong ?

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.



Back to top









