|Eclipse Compiler Classpath Ignored [message #755410]
||Tue, 08 November 2011 06:57
| Marcel A.
Registered: July 2009
i have an RCP application which uses the Compiler API to compile java source programmatically. At the moment i use the standard java compiler with the classpath from the different plugins (paths to the external libs and binarys).
Vector<String> optionList = new Vector<String>();
JavacTool compiler = com.sun.tools.javac.api.JavacTool.create();
This works as expected.
However if i try to use the Eclipse compiler instead:
JavaCompiler compiler = new EclipseCompiler();
compilation errors are thrown because of the missing classpath.
Is this a bug of the Eclipse compiler in combination with Compiler API or did i do something wrong?
Apropos is there another way to calculate the classpath for the compiler (API which gives me the whole classpath of the RCP application and the embedded plugins and libs)?
Thanks in advance for any hints!
Powered by FUDForum
. Page generated in 0.03270 seconds