Hi,
I have a java code with name Sum.java
code:-
class Sum1
{
int RetSum(int a1 , int a2)
{
return a1+a2;
}
}
class Sum
{
public static void main(String args[])
{
Sum1 a=new Sum1();
System.out.println(a.RetSum(10,20));
}
}
when i coplied this code it generates two class files
Sum.class and Sum1.class
I want to call this code in transformer.
Is it possible to do this,if it is please help me how to do ..??
Regards
running the java code in datastage7.5
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
External functions are documented for c calls. I would think that if you make a library with an entrypoint for this java program and declare c-type parameters and results then it should work. But you need to link your output files to object code and I don't know how to do that with java.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Please only post the same question one time!
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>