|
From: <php...@li...> - 2008-10-28 16:13:13
|
Hi, I'm new to php-java-bridge, but i'm very interested in it to use Jasper Report on php. I have a running dev/test debian etch server with apache2 and php5 and i would like to install php-java-bridge without tomcat or jdr. This is the snippet of doc from README.GNU_JAVA from which i take this idea. ### In case you don't want to ship a JVM or JRE with your product, you can use GNU gcc to compile the java part and your classes into native code. In the directory php-java-bridge_p.x.y type: gcj --version # must be gcj 3.3.3 or above (gcj 4.1 recommended). phpize && ./configure && make && su -c "make install" This creates a native, dynamic linked back-end in the PHP extension directory. ### Here is what i currently have done : ### apt-get install gcj php5-dev gcc autoconf libtool automake make wget http://downloads.sourceforge.net/php-java-bridge/php-java-bridge_5.3.2.1.2.orig.tar.gz?modtime=1223900873&big_mirror=0 tar xzvf php-java-bridge_5.3.2.1.2.orig.tar.gz cd php-java-bridge_5.3.2.1.2.orig phpize && ./configure && make && make install ### Everything is ok so far. But when i try to use java in my php script, it hangs : ### <?php $system = new Java('java.lang.System'); ?> ### *Fatal error*: Class 'Java' not found in */home/day/[...]/test.php* on line *4* ### I'm sure it's a simple thing due to me being a newbie, like how should I configure php.ini for this to work ? (I have done nothing between the make install part and the php part.) Would anyone have an idea ? I have searched in the archives but not found anything i could use. David Pradier |