(rac)Php dobut with an extension
| From: | Celestino Roberto Alejandro | Date: | Wed, 14 Mar 2001 13:21:31 +0000 |
| Subject: | (rac)Php dobut with an extension | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43823@lists.php.net to get a copy of this message | ||
Hey !! How are you....
I've tried to do run PHP with JAVA support enabled, (in a Win32 plattform in
this case), and when i uncommented the extension=php_java.dll, all is ok,
then i configure the [JAVA] section, with...
[Java]
java.home = c:\java
java.library = c:\java\jre\bin\classic\jvm.dll
java.library.path = c:\user\php\extensions\
java.class.path="c:\user\php\extensions\php_java.jar;c:\usr\php\java\classes
";
...then, when i run an example as...
///////////////Java
class uno{
public int numberer(){
return 800;
}
public static void main(String[] args){
System.out.println("Hello WORLD! Rober trying");
}
}
/////////////////////
and i put the .class in c:\usr\php\java\classes (my class path...i suppose
:-))
/////////////////////Php
<?php
dl("php_java.dll");
print "Robert Celestino\n";
$myj = new Java("uno");
print "Loaded\n";
print $myj->numberer();
print "Right Loaded and called\n";
?>
///////////////////////
..then this run, and say...
/*OUTPUT*/
Robert Celestino
security properties not found. using defaults.
Loaded
...and Died...Why?...(...i wait but, some is bad, because its wait, and
wait, and wait....).
..If you can help my.............THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!