What language is the compiler and JVM written in?
• Sun’s javac Java technology-enabled compiler is written in the Java programming language. • Sun’s java JVM interpreter is written in the Java programming language with some C, C++ for platform-specific and low level routines. • Sun’s Java Web ServerTM is written in the Java programming language. • Other companies have chosen other approaches. IBM’s Jikes compiler (which is praised for its speed) is written in C++, but of course a version must be recompiled for each platform. • (Sect. 4) How do I turn off the JIT in the JDK? The command that works in JDK 1.2 is java -Djava.compiler=NONE … This doesn’t work in JDK 1.3 which uses HotSpot. The main reason for turning off the JIT is to get more information about any exception that is thrown in your code. But HotSpot is able to produce line numbers in stack traces even for JIT’d code. HotSpot rocks. • (Sect. 4) How can I store the errors from the javac compiler in a DOS file? javac foo.java > errorfile doesn’t work. javac writes errors t