PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Calling a java class from peoplecode

edited Jan 6, 2012 9:35AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 7 commentsAnswered
I'm trying to learn how to call a java program from peoplecode.  I created a simple java program, compiled it,  and placed it in the class directory in <PS_HOME>.  I'm able to instantiate the java program in peoplecode using GetJavaClass.  However, when I try to call a method within the class I keep getting an error that the method is not found in the class.  Hopefully someone can point out what I'm missing ...
The java source:

public class MyTest {

  public String getresult(String inputString) 
  { 
    return inputString;
  }
}

The peoplecode I'm using is:

Local JavaObject &myJava;
Local string &strResult;

&myJava = GetJavaClass("MyTest");

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center