Wrapper Class
If you want to write your application in something other the Java you will need to create a Java wrapper class.
- First create a class that extends Apps and create a function public void run(). In this function you need to do the following.
String arg[] = new String[ numArgs + 1];
arg[0] = "ProgramName";
arg[1] = argument1;
arg[numArgs] = null;
Runtime r = Runtime.getRuntime();
Process p = r.exec(arg);
Buffered Reader pIn = new BufferedReader(new InputStreamReader(p.getInputStream()));
PrintWriter pOut = new PrintWriter(p.getOutputStream());
pOut.println(parm);
String in;
while((in = pIn.readln()))
dOut = in;