AS400/Java Toolkit and PHP
| From: | Conover, Ryan | Date: | Mon, 26 Feb 2001 14:59:47 +0000 |
| Subject: | AS400/Java Toolkit and PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41685@lists.php.net to get a copy of this message | ||
> I am using php 4.0.4pl1. I added the AS400 toolkit to the JVM so I can
> interface with an AS400. but for some reason when I go to use a class in
> the JVM it says.
>
> Fatal error: Cannot instantiate non-existent class: java in
> c:\Inetpub\wwwroot/AS400/testtoolbox.php on line 11
>
> Below is the code I used.
> <?
> include "c:\\Inetpub\\wwwroot\\library\\calfunction.inc";
> include "c:\\Inetpub\\wwwroot\\library\\AS400lib\\standard.inc";
> session_register('userinfo');
> $user=$userinfo->user;
> $pass=$userinfo->pass;
> $printer=$userinfo->printer;
> //java constructor is AS400("system", "user", "pass")
> $as400 = new Java("com.ibm.as400.access.AS400", "X.X.X.X",
> "$user",
> "$pass")
> or die("Unable to Connect to AS400");
> ?>
>
> Ryan Conover
>