Can I use JDT as a standalone tool without eclipse env? [message #657225] |
Wed, 02 March 2011 03:05 |
Sai Missing name Messages: 25 Registered: March 2011 |
Junior Member |
|
|
Hi all:
I am developing a program analysis tool based on JDT core (primarily using the AST parser).
I developed the tool in the eclipse environment, and it works well (running inside an eclipse Java project, not a plugin project).
However, when I plan to export all class into a single jar and release the tool (in other words, executing the program out of eclipse), I found there is an unexpected exception been thrown (as follows). This exception has never been seen before when running my code INSIDE eclipse:
...
Warning: NLS missing message: plugin_notPluginClass in: org.eclipse.core.internal.runtime.messages
Warning: NLS missing message: plugin_unableToResolve in: org.eclipse.core.internal.runtime.messages
Warning: NLS missing message: plugin_pluginDisabled in: org.eclipse.core.internal.runtime.messages
Warning: NLS missing message: plugin_instantiateClassError in: org.eclipse.core.internal.runtime.messages
Warning: NLS missing message: plugin_loadClassError in: org.eclipse.core.internal.runtime.messages
Exception in thread "main" java.lang.ExceptionInInitializerError: Missing message: parser_missingFile in: org.eclipse.jdt.internal.compiler.messages
at org.eclipse.jdt.internal.compiler.parser.Parser.<clinit>(Parser.java:121)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.parse(Compi lationUnitResolver.java:492)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTPars er.java:1194)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java: 801)
Here are all the dependent jars (all from eclipse-3.6.1/plugins dir):
org.eclipse.core.commands_3.6.jar
org.eclipse.core.contenttype_3.4.1.jar
org.eclipse.core.jobs_3.5.1.jar
org.eclipse.core.resources_3.6.0.jar
org.eclipse.core.runtime_3.6.0.v20100505.jar
org.eclipse.equinox.common_3.6.0.jar
org.eclipse.equinox.preferences_3.3.0.jar
org.eclipse.jdt.core_3.6.1.jar
org.eclipse.osgi_3.6.1.jar
org.eclipse.text_3.5.0.jar
So, I guess there maybe some implicitly dependent inside an eclipse project. I step into the trace, and find the code in
org.eclipse.jdt.internal.compiler.parser.Parser#readTable(fi leName) need to load some files like "parse1.rsc" , but I have not found such files in my disk.
I am a bit confused on that. Could any one kindly give me some hints in solving this problem? to release a standalone tool using JDT.
Any comments are highly appreciated.
thanks
-Sai
[Updated on: Wed, 02 March 2011 03:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04687 seconds