Monday, May 19, 2008

Java Event Handler ClassPaths

One of the most common questions that comes up when developing Java Event Handlers is:

"Where do I put my classes?"

Rather than write it up here, I added an entry to the BIRT FAQ here.


Andreas Buchen said...

Hi Scott,

nice post. One question: I am using the chart engine inside an Eclipse RCP application (

To get the script class loaded, I added the following fragment:

RunTimeContext rtc = new RunTimeContext();
rtc.setScriptClassLoader(new IScriptClassLoader()
public Class<?> loadClass(String className, ClassLoader parentLoader) throws ClassNotFoundException
return getClass().getClassLoader().loadClass(className);

The script class is otherwise not found, because the chart plug-in cannot load my class.

I wonder if there is a simpler way to do this...

- Andreas.

Anonymous said...


I believe that you have found a bug that was all ready in the code. It looks like you have an appropriate work around. Sorry about the inconvenience.

If you want to track the bug, please refer to

Anonymous said...

hi Scott,

i'm new at using birt ...
and i want to debug my java eventhandler but after starting the debug function it always says the same:

terminated: DataSetHandler [Java Application]

disconnected: EventHandler.DataSetHandler at localhost:1648

terminated, exit value: 0 C:\Programme\Java\jre6\bin\javaw.exe (07.10.2009 10:50:04)

can you help me to solve this problem please?