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!

I need some help with setting up to use java in php

Status
Not open for further replies.

soas

Technical User
Aug 3, 2001
49
US
I have followed all the steps I could find searching around and I have it pretty far along I think at least...
I am using windows 98, and pws with php installed, mostly so I can write php on my computer before I send it to my website...
So I have installed php4.04 and jdk1.3.1, I have them both working like they're supposed to be, I uncommented php_java.dll in php.ini, I set the java directories in php.ini to the right places, it loads the php_java.dll module just fine..

So I tried to run a simple test to see if java is working on it and I get this error..

Fatal error: Unable to create Java Virtual Machine

I dont know how to fix that... Is that an Internet Explorer problem? I have jvm.dll set to c:\jdk\jre\bin\hotspot\jvm.dll
I dunno if thats wrong..
Well anyways heres the test file I tried to run..

<?php
$systemInfo = new Java(&quot;java.lang.System&quot;);
print &quot;Total seconds since January 1, 1970:
&quot;.$systemInfo->currentTimeMillis();
?>

I considered that there could be something wrong here too, only breifly though... I think the file is pretty reliable, well if anyone has set up php with pws and has java working in it.. or if anyone recognizes something I left out or might be doing wrong, it would really help me out alot.
Thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top