Thomas, I tjhink my confusion is about how to write one step in the php program.
Namely line 7 in the paul.php program to call and print the output from the java code.
Here is the java code: (located in c:\javaclasses) compiled as javaprog.class
public class javaprog
{
public static void main(String[] args)
{
System.out.println("Printed by Java program");
System.exit(8) ;
}
}
Next is the php code in htdocs as :
<?php
java_require("C:\javaclasses");
$my = new Java('javaprog');
echo "Hello World!" ;
$output = array();
$return_var = 0;
java javaprog ->($output) //This is the trouble line. I don't know how to do this properly.
$output_str = join($output, "\n");
echo "<pre>The output was:\n$output_str\n\n";
echo "The return value was $return_var</pre>" ;
?>
Note: The two other model programs you sent me work fine!
I think this problem rests on my ignorance and is probably very simple.
Paul R