Re: Java and PHP
| From: | 东方一蛇 | Date: | Fri, 11 Aug 2000 02:49:12 +0000 |
| Subject: | Re: Java and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11260@lists.php.net to get a copy of this message | ||
Java and PHPjava
Directive Local Value Master Value
java.class.path
E:\PHP4\ext\php_java.jar E:\PHP4\ext\php_java.jar
java.home
E:\jsp\jdk122\bin E:\jsp\jdk122\bin
java.library
e:\Program Files\JavaSoft\JRE\1.2\bin\classic\jvm.dll jvm.dll
java.library.path
e:\php4\ext no value
Thank you very much.
But i can't how to set classpath in php.ini.
I havd set up classpath in my system environment.
Another question,after set up that,then can i show the info ues <? echo $CLASSPATH ;?> ?.
And i use PHP4dev2 for win2000+apache(cgi).
Error:
Warning: java.lang.ClassNotFoundException: test in e:\php\program\java\jsp1.php on line 2
The same question in PHP4dev2+win2000+IIs5.
Thanks.
smallsnake
----- Original Message -----
From: Nold, Mark
To: 'cgreen@yysoft.com'
Cc: Php-General (E-mail)
Sent: Friday, August 11, 2000 9:03 AM
Subject: Java and PHP
---------------------------------------------------------------------------------------------
Disclaimer: The information contained in this email is intended only for the use of the person(s)
to whom it is addressed and may be confidential or contain legally privileged information. If you
are not the intended recipient you are hereby notified that any perusal, use, distribution, copying
or disclosure is strictly prohibited. If you have received this email in error please immediately
advise us by return email at postmaster@normandy.com.au and delete the email document without making
a copy.
---------------------------------------------------------------------------------------------
I havent tried using SQL and Java from PHP (im not sure why you'd want to but thats another
issue) but your problems could have something to do with the fact that PHP doesnt honour the class
path set in your system environment. That is you must set up the CLASSPATH in your PHP.INI.
The other fact is that php (as of PHP4 pl1) doesnt use . as a valid classpath. So you have to have
your class's somewhere in your classpath not your current directory.
I wrote a small .php with some more info and examples. If you want it just mail.
mn
Mark Nold
markn@alverstone.com.au
Systems Consultant
Change is inevitable, except from vending machines.