Blog

BIRT Exception “ReferenceError: <OBJECT> is not defined”

January 14, 2014

While trying to use a Scripted Data Source within BIRT Report Designer I ran across this error:

BIRT ReferenceError: <OBJECT> is not defined

Where OBJECT is any Java class. My Java class was very simple.

I verified my JAR file was in the plugin scriptlib folder

C:\eclipse_birt\plugins\org.eclipse.birt.report.viewer_4.3.1.v201309171028\birt\scriptlib

My problem was that my Java class had a main[] signature for some simple testing outside of BIRT.

I removed the main[] method on the class and exported my JAR again.

BIRT Report Designer could then instantiate my Java class without error.

0 Comments

Leave Your Comment

Your email address will not be published. Required fields are marked *


about me

An information technology professional with twenty five years experience in systems administration, computer programming, requirements gathering, customer service, and technical support.