note 40826 added to ref.java
| From: | thewizards11atnetscapedotnet at rn2 dot php dot net | Date: | Tue, 16 Mar 2004 08:38:02 +0000 |
| Subject: | note 40826 added to ref.java | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66891@lists.php.net to get a copy of this message | ||
hi,
after following through everything, i made all possible changes.. but i was still getting the error
:
Fatal error: Unable to load Java Library /opt/java/j2sdk1.4.2/jre/lib/i386/libjava.so, error:
/opt/java/j2sdk1.4.2/jre/lib/i386/libjava.so: symbol JVM_GetClassName, version SUNWprivate_1.1 not
defined in file libjvm.so with link time reference in /usr/local/apache/htdocs/java.php on line 3
i had export statement for ld path in my apachectl and i commented out java.library and
java.library.path directives (so it could use them from ld path)
anyway.. then.. i ran this command into the command line:
ldd -d /opt/java/j2sdk1.4.2/jre/lib/i386/server/libjvm.so
and changed java.library to:
java.library = "/opt/java/j2sdk1.4.2/jre/lib/i386/server/libjvm.so"
and now i dont get any errors : ).. but i dont get expected output either..
the output i get is:
Java version=1.4.2<br />Java vendor=Sun Microsystems Inc.<br />OS=Linux 2.4.20-30.9 on
i386 <br />ZoneInfo: /opt/java/j2sdk1.4.2/lib/zi/ZoneInfoMappings (No such file or directory)
ZoneInfo: /opt/java/j2sdk1.4.2/lib/zi/ZoneInfoMappings (No such file or directory)
Tuesday, March 16, 2004 at 3:39:38 AM GMT-05:00
the code i tried to run (from command line) was one of the example codes provided above .. i will
let u guys know if i come up with something
----
Manual Page -- http://www.php.net/manual/en/ref.java.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40826
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40826&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40826&report=yes
Search -- http://master.php.net/manage/user-notes.php