Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » EclipseCompiler working standalone but not in plugin
EclipseCompiler working standalone but not in plugin [message #1103075] Fri, 06 September 2013 10:59
jonas b is currently offline jonas bFriend
Messages: 23
Registered: July 2013
Junior Member

In my plugin I want to use org.eclipse.jdt.internal.compiler.tool.EclipseCompiler to compile code in-memory. I want to reuse code which I have successfully tested in a standalone java project. The code is more or less copied from here:

While this works well for a standalone project, it doesn't work inside my plugin. The code provides its own implementation of ClassLoader which performs lookup in a hashtable. However this custom classloader's findClass() method is never called. In the standalone version it is called.

There is this bug but I cannot confirm if I'm affected by it since it's only in the plugin context where it's not working.

Is there anything special to be done when running this inside a plugin?
Previous Topic:Installing JDT plugins offline into Eclipse CDT
Next Topic:null for integral types ?
Goto Forum:

Current Time: Wed Nov 25 02:30:31 GMT 2015

Powered by FUDForum. Page generated in 0.02446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software