Urgent.... Routine call java fail

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
wuruima
Participant
Posts: 65
Joined: Mon Nov 04, 2013 10:15 pm

Urgent.... Routine call java fail

Post by wuruima »

Dear,

I develop a routine to call a java program

================routine=============
Cmd='sh /xxxx/abm/common/script/1.sh'
Call DSExecute("UNIX", Cmd, Output, ExitCode)
Ans=Output
================routine=============

================script==============
#!/usr/bin/ksh
cd /xxxx/abm/java
/usr/java6/jre/bin/java com.T a b
================script==============

I use SSH to login the AIX server and run the 1.sh script, it could run successfully.
However, when I call the routine, it throws exception! Class not found. I don't know what happens. the routine worked in another datastage environment. Does anyone can give any advise? THANKS SO MUCH.

Code: Select all

Result = Exception in thread "main" java.lang.NoClassDefFoundError: com.T
Caused by: java.lang.ClassNotFoundException: com.T
	at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Could not find the main class: com.T.  Program will exit.
wuruimao
wuruima
Participant
Posts: 65
Joined: Mon Nov 04, 2013 10:15 pm

Re: Urgent.... Routine call java fail

Post by wuruima »

wierd!

After import the dsx of the routine again, the problem dispear!
wuruimao
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So I guess it's not urgent any more?

DSXchange is not the place for "urgent". Members post as and when they can, and are under no obligation to do so.

If you need urgent assistance, sign up with your official support provider for premium service, and learn just how much "urgent" can cost.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply