java-compiler

Where is the source code for the java compiler?

I'm looking for the source code of Sun's standard java compiler, javac. jdk1.6.0_07 has a few classes that are related, but they are interfaces (java.lang.Compiler and javax.tools.JavaCompiler). There's also some packages under com.sun.mirror.* and com.sun.source.*, which seem to be interfaces for representing the java abstract syntax ...

Null Pointer Exception while using Java Compiler API

MyClass.java: package test; public class MyClass { public void myMethod(){ System.out.println("My Method Called"); } } Listing for SimpleCompileTest.java that compiles the MyClass.java file. SimpleCompileTest.java: package test; import javax.tools.*; public class SimpleCompileTest { public static void main(String...

Classpath of classes compiled with Javassist

As the title suggests, what is the classpath of classes compiled with Javassist? My scenario is: Class A is compiled with Javassist. Class B is compiled with Java Compiler API and references Class A. The problem is that Class A is not visible to Class B... Any ideas? ...