Problem calling Java from PHP script
<p>I am working on windows. I am running PHP (5.1.3) scripts on Tomcat using PHP/Java bridge. Here is my simple code</p>

<pre><code>//test.php
&lt;?php
require_once("java\Java.inc");
$systemInfo = new Java("Test");
print $systemInfo-&gt;foo();
?&gt;

//test.java
class Test
{
 public void foo()
 {
  System.out.println("hello php");
 }
}
</code></pre>

<p>Test.class is in the same folder as test.php. But the php file is not able to locate the test class and I get the following error -</p>

<pre><code>Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Test. 
</code></pre>

<p>If I use a standard class like below. It works -</p>

<pre><code>&lt;?php
require_once("java\Java.inc");
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970: 
".$systemInfo-&gt;currentTimeMillis();
?&gt;
</code></pre>

<p>What should I do?</p>

<p>1)Should I copy my class to the standard location where all Java classes are kept. (What is this location?)</p>

<p>2) Do some changes in the php.ini file</p>
