I have installed CYGWIN Emulator Terminal on windows 7 in order to use GCC, i know that it can compile too many language, i can use it with C properly but don't know how to use it to compile java files?
It can compile Java source code to either Java bytecode (class files) or native machine code. It can also compile Java bytecode to native machine code. GCJ native code can be executables or shared libraries.
The GNU Compiler for the JavaTM Programming Language. GCJ is a portable, optimizing, ahead-of-time compiler for the Java Programming Language. It can compile Java source code to Java bytecode (class files) or directly to native machine code, and Java bytecode to native machine code.
DIFFERENCE BETWEEN g++ & gccg++ is used to compile C++ program. gcc is used to compile C program.
If anyone is reading this question past September 30, 2016:
The GNU Compiler for Java (GCJ) has been discontinued and is no longer part of the GNU Compiler Collection (GCC), as it can be seen in the release notes for GCC 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With