How to compile to target Java 1.0
问题 I want to compile my code down to Java version 1.0. I managed to compile down to 1.1 : $ java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) $ javac -target 1.2 -source 1.2 MyClass.java (works with some warnings) $ javac -target 1.1 -source 1.2 MyClass.java (works with some warnings) But the target option does not seem to accept 1.0 : $ javac -target 1.0 -source 1.2 MyClass.java