From owner-freebsd-java Mon Jan 21 1:10:37 2002 Delivered-To: freebsd-java@freebsd.org Received: from blue.pl (blue.pl [217.153.14.17]) by hub.freebsd.org (Postfix) with ESMTP id 725D837B404 for ; Mon, 21 Jan 2002 01:10:28 -0800 (PST) Received: from blue.pl (blue.pl [217.153.14.17]) by blue.pl (Postfix) with ESMTP id 3DF0981BD0 for ; Mon, 21 Jan 2002 10:10:30 +0100 (CET) Date: Mon, 21 Jan 2002 10:10:30 +0100 (CET) From: P To: freebsd-java@FreeBSD.ORG Subject: Fatal error: Unable to locate CreateJavaVM function in ... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hello, I'm trying to install and run php with java ext. so i've made: cd /usr/ports/java/jdk12-beta ; make && make install. added --with-java=/usr/local/jdk1.2.2 to ./configure in php. su-2.05a# cat /usr/local/etc/php.ini [java] java.home=/usr/local/jdk1.2.2 java.class.path=/usr/local/lib/php/php_java.jar:/usr/local/jdk1.1.8/lib/classes.zip extension_dir=/usr/local/lib/php/20010901 extension=libphp_java.so java.library.path=/usr/local/lib:/usr/local/lib/compat:/usr/compat/linux/lib:/usr/local/jdk1.2.2/lib/i386/green_threads:/usr/local/jdk1.2.2/jre/lib/i386:.:/usr/local/jdk1.2.2/jre/lib/i386/classic:/usr/local/jdk1.2.2/jre/lib/i386/green_threads java.library=libjava.so ldconfig -r shows: search directories: /usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib:/usr/local/lib/compat:/usr/local/lib/mysql: /usr/local/jdk1.2.2/jre/lib/i386:.:/usr/local/jdk1.2.2/jre/lib/i386/classic: /usr/local/jdk1.2.2/jre/lib/i386/green_threads in $PATH i've added /usr/local/jdk1.2.2/bin su-2.05a# echo $LD_LIBRARY_PATH /usr/local/lib:/usr/local/lib/compat:/usr/compat/linux/lib:/usr/local/jdk1.2.2/lib/i386/green_threads: /usr/local/jdk1.2.2/jre/lib/i386:.:/usr/local/jdk1.2.2/jre/lib/i386/classic: /usr/local/jdk1.2.2/jre/lib/i386/green_threads Then, when i try to execute java.php i've: Fatal error: Unable to locate CreateJavaVM function in /usr/home/pck/public_html/java/java.php on line 9 My java.php looks like: I'm using FreeBSD4.4, apache 1.3.22, php 4.1.1, jdk 1.2.2 (from ports). Please help me. Best regards, P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message