Fw: Problem installing Java module
| From: | Frans Thamura | Date: | Thu, 04 May 2000 18:03:53 +0000 |
| Subject: | Fw: Problem installing Java module | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13065@lists.php.net to get a copy of this message | ||
Dear All,
Can anybody help me how to install the java module in PHP4.
I install the Java module, and add the current statement in PHP.ini
[java]
java.class.path="c:/jdk1.2.2/jre/lib/rt.jar;C:/PHP/php_java.jar;"
extension=php_java.dll
java.library.path="C:/jdk1.2.2/lib;c:/php;c:/jdk1.2.2/jre/lib;"
java.library="C:/jdk1.2.2/jre/bin/classic/jvm.dll"
java.home="c:/jdk1.2.2/"
I can run jver.php from the DOS prompt and from browser, but jawt.php from
the browser.
The error message is :
Warning: java.lang.ExceptionInInitializerError in c:\webpages\jawt.php on
line 10
Warning: java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit in
c:\webpages\jawt.php on line 11
Warning: java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit in
c:\webpages\jawt.php on line 16
If I change the parameter below:
[java]
java.class.path="c:/jdk1.2.2/jre/lib/rt.jar;C:/PHP/php_java.jar;"
extension=php_java.dll
; java.library.path="C:/jdk1.2.2/lib;c:/php;c:/jdk1.2.2/jre/lib;"
java.library="C:/jdk1.2.2/jre/bin/classic/jvm.dll"
; java.home="c:/jdk1.2.2/"
The error is missing, but the browser is waiting something.
But If I execute in the DOS prompt, the java application, Zend with the
Hello button appeared.
Another issue is the error like below :
I used the php3 module, for my php job.
If I execute the .php file from DOS the error like fatal error disappear.
If I used the module in the browser show:
> X-Powered-By: PHP/4.0RC1
> Content-type: text/html
But if I remove they will be disappear, but you know the function which I
want from the module is not included
Regards,
Frans
----- Original Message -----
From: <rubys@us.ibm.com>
To: "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id>
Sent: Monday, April 03, 2000 11:09 AM
Subject: Re: Problem installing Java module
>
>
> From what I can see, you have Java support working. Perhaps somebody on
> the php mailing list may be able to help you further?
>
> - Sam Ruby
>
>
> "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id> on 05/04/2000 02:34:45
> AM
>
> To: Sam Ruby/Raleigh/IBM@IBMUS
> cc:
> Subject: Re: Problem installing Java module
>
>
>
> Another information, If I execute from DOS, like this
>
> C:\PHP>php jver.php
>
> It shown like this:
>
> PHP Fatal error: Unable to load dynamic library
'c:/php/php_mysql.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
> 'c:/php/php3_dbase.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library 'c:/php/php3_gd.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
'c:/php/php3_zlib.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
> 'c:/php/php3_imap4r1.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
> 'c:/php/php3_crypt.dll'<br>
> The specified procedure could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library 'c:/php/php3_fb.dll'<br>
> The specified module could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library 'c:/php/php3_xml.dll'<br>
> The specified module could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
> 'c:/php/php3_oci80.dll'<br>
> The specified module could not be found.
> in Unknown on line 0
> PHP Fatal error: Unable to load dynamic library
> 'c:/php/php3_pdflib.dll'<br>
> The specified module could not be found.
> in Unknown on line 0
> X-Powered-By: PHP/4.0RC1
> Content-type: text/html
>
> <html>
> Java version=1.2.2 <br>
> Java vendor=Sun Microsystems Inc. <p>
>
> OS=Windows NT 5.0 on x86 <br>
> Wednesday, May 03, 2000 at 11:32:26 PM Pacific Daylight Time
> </html>
>
> And how to remove this message:
> X-Powered-By: PHP/4.0RC1
>
> it cause several of myscript cannot work well.
>
> Frans
>
> ----- Original Message -----
> From: <rubys@us.ibm.com>
> To: "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id>
> Sent: Monday, April 03, 2000 8:59 AM
> Subject: Re: Problem installing Java module
>
>
> >
> >
> > jre/bin/classic needs to be in your PATH. The JDK uses this to find
> other
> > files necessary for running the JVM (example: it looks for
> > ../../lib/rt.jar)
> >
> > - Sam Ruby
> >
> >
> > "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id> on 05/04/2000
01:43:35
> > AM
> >
> > To: Sam Ruby/Raleigh/IBM@IBMUS
> > cc:
> > Subject: Problem installing Java module
> >
> >
> >
> > Dear Ruby,
> >
> > I downloaded the binary.
> >
> > I add this syntax to PHP.ini
> >
> > [java]
> > java.class.path=C:\PHP\php_java.jar
> > extension=php_java.dll
> >
> > First Error is the jvm.dll cannot be found.
> > I try to copy the jvm.dll from jre/bin/classic to c:\winnt\system32
> >
> > and error shown
> > X-Powered-By: PHP/4.0RC1 Content-type: text/html
> > Fatal error: Cannot instantiate non-existent class: java in
> > c:\webpages\phpinfo.php on line 5
> >
> > after that I add the extension=php_java.dll to the [module]
> >
> > and show the erro like this
> > X-Powered-By: PHP/4.0RC1 Content-type: text/html
> > Fatal error: Unable to create Java Virtual Machine in
> > c:\webpages\phpinfo.php on line 5
> >
> > Can you help me?
> >
> > Regards
> >
> > Frans
> >
> > ----- Original Message -----
> > From: <rubys@us.ibm.com>
> > To: "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id>
> > Sent: Monday, April 03, 2000 7:40 AM
> > Subject: Re: Java Module of PHP
> >
> >
> > >
> > >
> > > Precompiled binaries are available at that site too.
> > >
> > > - Sam Ruby
> > >
> > >
> > > "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id> on 05/04/2000
> 12:19:00
> > > AM
> > >
> > > To: Sam Ruby/Raleigh/IBM@IBMUS
> > > cc:
> > > Subject: Re: Java Module of PHP
> > >
> > >
> > >
> > > I've already get the source code. But, I don't have C++ compiler, the
> > > compiler I have are Java and VB.
> > >
> > > Frans
> > >
> > > ----- Original Message -----
> > > From: <rubys@us.ibm.com>
> > > To: "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id>
> > > Sent: Monday, April 03, 2000 4:57 AM
> > > Subject: Re: Java Module of PHP
> > >
> > >
> > > >
> > > >
> > > > Since you mentioned COM, I'm presuming that you are working on a
> Win32
> > > > platform? If so, you can get a precompiled binary from
> > > > http://www.php.net/version4/downloads.php .
> > > >
> > > > - Sam Ruby
> > > >
> > > >
> > > > "Frans Thamura" <bsp_gap@kisaran.wasantara.net.id> on 05/03/2000
> > 07:23:20
> > > > PM
> > > >
> > > > To: Sam Ruby/Raleigh/IBM@IBMUS
> > > > cc:
> > > > Subject: Java Module of PHP
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Dear Ruby,
> > > >
> > > > I am a technology consultant, is studying a 3-tier development for
> > PHP4,
> > > > Java and COM.
> > > >
> > > > Can I have a compiled version java module of PHP4. I have a problem
> > with
> > > > compiling because I have no background with C++ or C.
> > > >
> > > > Regards
> > > >
> > > > Frans Thamura
> > > > Arthur Andersen Indonesia
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>