Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone help me with some info on setting up java support for php?

Status
Not open for further replies.

soas

Technical User
Aug 3, 2001
49
US
Hello , I have recently installed the php4.06 manualy on Personal Webserver 4 for windows 98, it works just fine so far, I am trying to figure out how to add the java support, there isnt much to go on by the documentation i could find, and i dont understand some things

at the moment i have done very little except uncomment
extension=php_java.dll
and i put
java.class.path = "C:\Inetpub\scripts\php\java"
java.library = "c:\windows\system\jvm.dll"

and when i do this simple test php file:
<?
$system= new Java(&quot;java.lang.System&quot;);
print &quot;Java version=&quot;.$system->getProperty(&quot;java.version&quot;).&quot;<br>\n&quot;;
print &quot;Java vendor=&quot;.$system->getProperty(&quot;java.vendor&quot;).&quot;<p>\n\n&quot;;
?>
i get Fatal error: Cannot instantiate non-existent class: java

Im not sure how much more i need to do to set it up
heres what im unsure about and dont know what to change it to yet...
When setting up the php.ini file
what would the typical java.library.path and java.home be for windows 98?

Has anyone had success setting up java support for PWS with windows 98 ? I would really like to get this working, everything else so far with it has worked great and i have been progressing really nicely on learning php code, i have only had it a week or so but i love it, I really would like to impliment the java support though

any response would be very much appreciated, thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top