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.

How do I set -Dfile.encoding within ant's build.xml?

I've got java source files with iso-8859-1 encoding. When I run ant, I get "warning: unmappable character for encoding …

java ant character-encoding javac
How can I suppress javac warnings about deprecated api?

When I compile, javac outputs: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation …

java compiler-warnings javac
In which language are the Java compiler and JVM written?

In which languages are the Java compiler (javac), the virtual machine (JVM) and the java starter written?

java jvm javac
How to run a .class file that is part of a package from cmd?

I keep getting errors when I make my .class part of a package and try to run it from cmd. …

java class cmd package javac
Why does array[idx++]+="a" increase idx once in Java 8 but twice in Java 9 and 10?

For a challenge, a fellow code golfer wrote the following code: import java.util.*; public class Main { public static void …

java java-8 javac java-9 java-10
How to compile a java source file which is encoded as "UTF-8"?

I saved my Java source file specifying it's encoding type as UTF-8 (using Notepad, by default Notepad's encoding type is …

java unicode compiler-errors javac
What is the $1 in class file names?

C:\Program Files\Java\jdk1.6.0_05\CoreJava\v1\v1ch2\WelcomeApplet>dir Volume in drive C has no label. Volume …

java javac anonymous-class
Javac "cannot find symbol"

I've the root directory like this : ├── classes └── src └── vehicles ├── Bicycle.java └── BicycleMain.java Bicycle.java package vehicles; public class Bicycle { …

java compilation command-line-interface javac
unable to run javac on Ubuntu

I'm trying to run javac on a Ubuntu terminal. But I get the following: $ javac The program 'javac' can be …

java ubuntu javac
How can I compile and run a Java class in a different directory?

I'm writing a makefile that compiles a .java file in a different directory, and then I want to run it, …

java javac