From owner-freebsd-java Wed Apr 10 8:30:33 2002 Delivered-To: freebsd-java@freebsd.org Received: from inje.iskon.hr (inje.iskon.hr [213.191.128.16]) by hub.freebsd.org (Postfix) with ESMTP id C70BD37B41E for ; Wed, 10 Apr 2002 08:30:14 -0700 (PDT) Received: from flatline ([213.191.147.30]) by mail.iskon.hr (8.11.4/8.11.4/Iskon 8.11.3-1) with SMTP id g3AFToY18648; Wed, 10 Apr 2002 17:29:51 +0200 (MEST) Message-ID: <006901c1e0a4$9c95dcd0$e601a8c0@shara.net> From: "Ivan Voras" To: "Marc Recht" Cc: References: <031501c1e004$ac4d6990$e601a8c0@shara.net> <1018438798.38790.6.camel@leeloo.intern.geht.de> Subject: Re: php+java update Date: Wed, 10 Apr 2002 17:30:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org | > I did 'strings libjava.so | grep JVM_' and it gives a lot of JVM_* names, | > but I don't know are they exported or imported symbols (how could I find | > out?) and generally, how to fix this problem. I assume I will need help of | man nm(1) | | > someone who actually knows how the JVM works :) | > | > (the error occures when php tries to create a JVM) | It's defined in jre/lib/i386/classic/libjvm.so | jre/lib/i386/classic/libjvm.so:00042a38 T JVM_DoPrivileged | ( nm -A jre/lib/i386/classic/libjvm.so| grep JVM_DoPrivileged ) Thank you. It only worked when I added both paths (jre/lib/i386 and jre/lib/i386/classic) to LD_LIBRARY_PATH and jre/lib/i386/classic/libjvm.so to LD_PRELOAD veriables. Now there is one more problem: Fatal error: Unable to create Java Virtual Machine in /usr/home/ivoras/public_html/jver.php on line 4 but this time the error is generated willingly by php/java extension. I looked it up in ext/java.c and here is the code snippet: rc = (*JNI_CreateVM)(&JG(jvm), &JG(jenv), &vm_args); if (rc) { php_error(E_ERROR, "Unable to create Java Virtual Machine"); return rc; } Is there something I can to to make the message more verbose? ---- -------- - Ivan Voras - - All the simple programs have been written, and all the good names taken. - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message