Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Install Java on PHP

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

Junior Member

10+ Year Member

joined:Jan 19, 2003
votes: 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.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?

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


WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members