From owner-freebsd-java Mon Mar 10 22:44:56 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 155D037B401 for ; Mon, 10 Mar 2003 22:44:54 -0800 (PST) Received: from titan.kgt.co.jp (titan.kgt.co.jp [210.141.246.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E56D43F75 for ; Mon, 10 Mar 2003 22:44:53 -0800 (PST) (envelope-from haro@kgt.co.jp) Received: from navgw.tt.kgt.co.jp (navgw [210.141.246.71]) by titan.kgt.co.jp (Postfix) with ESMTP id F3ACE4A32D; Tue, 11 Mar 2003 15:44:51 +0900 (JST) Received: from tt.kgt.co.jp (pegasus [192.168.10.1]) by navgw.tt.kgt.co.jp (Postfix) with ESMTP id CFA4647711; Tue, 11 Mar 2003 15:44:51 +0900 (JST) Received: from localhost [192.168.17.108] by tt.kgt.co.jp with ESMTP (SMTPD32-7.12) id A703B8200E4; Tue, 11 Mar 2003 15:49:39 +0900 Date: Tue, 11 Mar 2003 15:44:18 +0900 (JST) Message-Id: <20030311.154418.74756297.haro@kgt.co.jp> To: antony.t.curtis@ntlworld.com, gsemones@treenleaf.com Cc: freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD JDK 1.3.1_p8 HotSpot not loading from jre/lib/ext??? From: Munehiro Matsuda In-Reply-To: <200303102336.27557.antony.t.curtis@ntlworld.com> References: <200303071217.AA1322254492@mail.mstar2.net> <200303102336.27557.antony.t.curtis@ntlworld.com> X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Mar_11_15:44:18_2003_031)--" Content-Transfer-Encoding: 7bit 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 ----Next_Part(Tue_Mar_11_15:44:18_2003_031)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Attached "untested" patch should fix the problem. Hope this helps, Haro From: Antony T Curtis Date: Mon, 10 Mar 2003 23:36:25 +0000 ::If I start the jvm with :: ::java -Djava.ext.dirs=/usr/local/jdk1.3.1/jre/lib/ext :: ::it works properly. Somewhere along the line it is not being set properly. :: ::At least now, I can use jsse in Konqueror :) :: ::On Friday 07 March 2003 8:17 pm, Guerry Semones wrote: ::> G'morning, ::> ::> We compiled FreeBSD JDK 1.3.1-p8 for HotSpot yesterday on FreeBSD ::> 4.8-RC. ::> ::> I loaded up the jre/lib/ext dir with the three JSSE 1.0.2 jar ::> files (for SSL support). Unfortunately, upon trying to compile my ::> classes, these jar files were not found. If I explicitly added ::> the three jar files to my classpath, all was happy, so I know it ::> is not an issue with the jar files. ::> ::> Also, 1.3.1-p6 (classic vm) which we have on another server loads ::> these classes just fine. ::> ::> Is there a known issue with 1.3.1-p8 not loading jar files from ::> jre/lib/ext, or some other hoop to jump through (perhaps due to ::> using hotspot?) ::> ::> Thanks, ::> ::> Guerry =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: haro@kgt.co.jp ----Next_Part(Tue_Mar_11_15:44:18_2003_031)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-hotspot-os_linux.cpp" --- ../../hotspot1.3.1/src/os/linux/vm/os_linux.cpp.org Thu Mar 6 09:34:47 2003 +++ ../../hotspot1.3.1/src/os/linux/vm/os_linux.cpp Tue Mar 11 09:23:17 2003 @@ -359,6 +359,7 @@ #define I18N_JAR "/lib/i18n.jar" #define SUNRSASIGN_JAR "/lib/sunrsasign.jar" #define CLASSES_DIR "/classes" +#define EXTENSIONS_DIR "/lib/ext" #define DEFAULT_LD_LIBRARY_PATH "/usr/lib" /* See ld.so.1(1) */ char *v; /* tmp var */ @@ -431,7 +432,7 @@ char * buf; // buf = malloc(strlen(sprops.java_home) + sizeof(MAXNAMLEN)); buf = malloc(MAXNAMLEN); - snprintf(buf, MAXNAMLEN, "%s", sprops.java_home); + snprintf(buf, MAXNAMLEN, "%s" EXTENSIONS_DIR, sprops.java_home); sprops.ext_dirs = buf; } } ----Next_Part(Tue_Mar_11_15:44:18_2003_031)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message