Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do you configure Eclipse Java compiler (javac) flags?

Tags:

Ex.

javac -g ButtMonkey.java 

Where do you configure the -g flag when Eclipse compiles Java source? (Using Ganymede but I doubt that has changed in later versions so any answer probably helps.)

What I need is:

-g

Generate all debugging information, including local variables. By default, only line number and source file information is generated.

like image 893
Mifune Avatar asked Feb 28 '12 14:02

Mifune


People also ask

Where is javac compiler located?

The value that you want to add is most likely C:\Program Files\Java\jdk-14.0. 2\bin if you are installing "JDK 14.0. 2". This is the location where the Java compiler ('java.exe') was installed in your file system.

Does Eclipse use javac?

Eclipse Java compiler is an incremental Java builder The Java compiler built in Eclipse is a part of JDT Core component (JDT: Java Development Tool). An incremental compiler automatically compiles code when changes are detected.

What is the Java compiler in Eclipse?

In summary, Eclipse uses its own JDT core as the Java compiler.


1 Answers

Select the menu: Window > Preferences > Java > Compiler

There you will find several check boxes under the heading "Classfile Generation".

like image 121
Jesper Avatar answered Sep 20 '22 17:09

Jesper