Class not found Exception.

Dedicated to DataStage and DataStage TX editions featuring IBM<sup>®</sup> Service-Oriented Architectures.

Moderators: chulett, rschirm

Post Reply
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Class not found Exception.

Post by allavivek »

Hi All,

I have a java class and iam supposed to call in my datastage to perform row by row operation.

I made jar file out of it and iam giving the jar file name/path in "users classpath" area in java transformer stage.

While running job iam getting error : Class not found Exception .

Is there any where i should mention the class path other than java stage ? any variable in unix server ?

Another question was my java program was using some of java utilities like jaxrpc.jar , servlet-api.jar should i must mention them also in java transformation stage ?

Thanks
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Re: Class not found Exception.

Post by allavivek »

Should i must assign this path in $LD_LIBRARY_PATH on unix server ??
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Re: Class not found Exception.

Post by allavivek »

Well , I made changes to my java program , adding Stage class and Row and Column class functionality to read and write rows.

But how do i test the code ?

By passing metadata along with sample record ?

Thanks
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Do a search of jaxrpc.jar, axis.jar, log4j.jar wsdl4j.jar, tr4j.jar on your server. Then put their paths in the CLASSPATH. Also do you have DATASTAGE_JRE, DATASTAGE_JVM, JAVA_HOME variables set in the dsenv?

What do you mean by "how do i test the code?".
Post Reply