Hi.
I want to use 'ASTParser' on RCP.
but I happen problem on JavaCore.
I saw a success post which write using headless eclipse.
I try it, but failed.
Please give me some suggestion!
public class Application implements IApplication {
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
*/
public Object start(IApplicationContext context) throws Exception {
ASTParser.newParser(AST.JLS3);
return IApplication.EXIT_OK;
}
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#stop()
*/
public void stop() {
// nothing to do
}
}
Exception;
java.lang.ExceptionInInitializerError
at org.eclipse.jdt.core.JavaCore.getOptions(JavaCore.java:3019)
at org.eclipse.jdt.core.dom.ASTParser.initializeDefaults(ASTParser.java:230)
at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:213)
at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java:113)
at org.hello.Application.start(Application.java:17)