Plugins (1083)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 540
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
cluster37
Post subject: Problem with classloader in plugins  PostPosted: May 06, 2008 - 04:37 PM



Joined: May 06, 2008
Posts: 1

Hi.

I am writing a Builder plugin. I want to create a new java file in the runtime workspace from 2 classes that the user select. To access these classes from their names, I have tried to use Class.forName("package.example.Test") but get ClassNotFoundException unless the class is within the plugin, or in a jar that is stored within the plugin project and the jar is exported. I have tried to use URLClassLoader to get a different classLoader than the one used by the plugin, but get no success.
Does someone knows how I can solve this problem?

Thank you in advance for your answers.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits