Page 1 of 1

Class not found Exception.

Posted: Fri Nov 18, 2011 7:53 pm
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

Re: Class not found Exception.

Posted: Fri Nov 18, 2011 7:58 pm
by allavivek
Should i must assign this path in $LD_LIBRARY_PATH on unix server ??

Re: Class not found Exception.

Posted: Sun Nov 20, 2011 8:57 pm
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

Posted: Mon Nov 21, 2011 1:04 am
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?".