|
From: <php...@li...> - 2008-07-02 22:54:46
|
hi, On Wed, Jul 2, 2008 at 5:06 AM, <php...@li...> wrote: >> gcj (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-20) > > supports only 32 Bit code generation. did not realize that; thought it gen'd 64bit :-/ good to know. > Please use a real Java implementation instead. -- GCJ compilation is a waste of time, anyway. The JIT compiler from the OpenJDK generates code which executes up to 5 times faster than the code generated from GCJ. i've installed IBM's jdk se 6 locally, which java /home/sc/jdk16-ibm/bin/java java -version java version "1.6.0" Java(TM) SE Runtime Environment (build pxa6460sr1-20080416_01(SR1)) IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460-20080415_18762 (JIT enabled, AOT enabled) J9VM - 20080415_018762_LHdSMr JIT - r9_20080415_1520 GC - 20080415_AA) JCL - 20080412_01 and the php-java-bridge builds "--with-java=$HOME/jdk16-ibm", installs without error. i'm on a shared Apache host, and note that on nav to my site, "top" shows, 1463 sc 15 0 81800 38m 25m S 0 0.2 0:00.12 gij-4.1 which is the gcc JIT, of course. as the host/server ENV is independent of _my_ ENV, i'm guessing that to get the server to invoke the IBM JIT for "my" php-java-bridge/jjava.so extension, i need to specify some AddHandler directive in my .htaccess ? if so, are there any docs/examples on this ? (haven't found any yet ...) or, different method? thanks! |