homepage Welcome to WebmasterWorld Guest from 54.204.58.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Install Java on PHP
Schoolbag




msg:1308961
 9:33 pm on Nov 13, 2003 (gmt 0)

I have Apache and PHP running on a Windows XP Pro box. Everything works fine. I need to install Java so that PHP can interact with a Java file.

I installed the Java SDK and at the comand prompt everything looks okay with a version check. When I try to run a basic PHP program with a Java call through the browser I keep getting the following:

Fatal error: Cannot instantiate non-existent class: java in C:\mainfolder\htdocs\listing1.php on line 3

Im sure it has something to do with the php.ini file but Ive tried everything and now Im stuck.

Here's what is in the php.ini file under java:

[Java]
java.class.path = "c:\mainfolder\php\extensions\php_java.jar;"
java.home = C:\jdk1.3.1_09
java.library = C:\jdk1.3.1_09\jre\bin\hotspot\jvm.dll
java.library.path = c:\php\extensions

what am I doing wrong?

 

jatar_k




msg:1308962
 1:58 am on Nov 15, 2003 (gmt 0)

I don't really know the answer have you looked through this
PHP / Java Integration [ca.php.net]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved