he creado un archivo php con este codigo
Código:
<?php
$obj = new Java("hello");
// Call the "sayHello()" method
$output = $obj->SayHello();
echo $output.' this text in PHP<br />'; // Displays (so this comes from the class!)
?>
y me da este error
Fatal error: Class 'Java' not found in C:\xampp\htdocs\java.php on line 4
¿que puede ocurrir?