Skip to main content

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: Tue Jun 19 12:37:46 GMT 2018

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

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

Back to the top