Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use GCC with Java?

Tags:

java

gcc

cygwin

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?

like image 726
Eslam Mohamed Mohamed Avatar asked Nov 10 '12 10:11

Eslam Mohamed Mohamed


People also ask

Can I compile Java with GCC?

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.

Can GNU compile Java?

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.

Is G ++ and GCC the same?

DIFFERENCE BETWEEN g++ & gccg++ is used to compile C++ program. gcc is used to compile C program.


1 Answers

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.

like image 52
Telmo Trooper Avatar answered Sep 19 '22 14:09

Telmo Trooper