Top "Javac" questions

javac is the primary Java compiler, included in the Java Development Kit (JDK) from Sun Microsystems (now Oracle), and also in versions from other vendors.

Is there a performance difference between Javac debug on and off?

If I switch on the generating of debug info with Javac then the class files are 20-25% larger. Has this …

java performance debugging javac
ToolProvider.getSystemJavaCompiler() returns null - usable with only JRE installed?

I am trying to use the JavaCompiler class: http://docs.oracle.com/javase/6/docs/api/javax/tools/JavaCompiler.html When …

java javac
javac error: inconvertible types with generics?

There are several other SO questions talking about generics compiling OK w/ Eclipse's compiler but not javac (i.e. Java: …

java generics compiler-errors javac
JCreator IDE: Program will compile but not run, works in command prompt

Recently purchased a new computer, trying to resume developing Java. One of the IDEs I use, JCreator, has started spitting …

java compiler-construction compilation javac jcreator
How to produce code in Java 11, but target Java 8 and above?

I am working on a small library and for obvious reasons I would like to produce code using all the …

java cross-compiling javac java-11
Make javac treat warnings as errors

I have an Ant file that compiles my program. I want the javac task to fail if any warning was …

java ant warnings javac
Would Java inline method(s) during optimization?

I wonder if JVM/javac is smart enough to turn // This line... string a = foo(); string foo() { return bar(); } string …

java optimization jvm javac
Compiling with JDK 1.8 java: cannot access class file... class file not found

Though the same code was getting to compiled successfully with JDK 1.6 version, after upgrading to JDK 1.8 it won't compile, saying …

java java-8 javac jdk1.6 jdk1.8.0
Resolving version conflict between java and javac on Ubuntu

I have a problem with my compiled Java application on Ubuntu. It throws UnsupportedClassVersionError. I am compiling with a higher …

ubuntu java javac openjdk unsupported-class-version
Why does a Java class compile differently with a blank line?

I have the following Java class public class HelloWorld { public static void main(String []args) { } } When I compile this file …

java compilation javac bytecode