Skip to: Site menu | Main content

Email Facebook LinkedIn Twitter Google

Blog...

BIRT Exception "ReferenceError: <OBJECT> is not defined"

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.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)