From owner-freebsd-java@FreeBSD.ORG Wed Sep 22 15:34:43 2004 Return-Path: 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 C8DE316A4CE for ; Wed, 22 Sep 2004 15:34:43 +0000 (GMT) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.5.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80C0143D41 for ; Wed, 22 Sep 2004 15:34:43 +0000 (GMT) (envelope-from truk@optonline.net) Received: from focus (ool-182e24b7.dyn.optonline.net [24.46.36.183]) by mta4.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with SMTP id <0I4G00K7U8LU6G@mta4.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Wed, 22 Sep 2004 11:34:43 -0400 (EDT) Date: Wed, 22 Sep 2004 11:34:46 -0400 From: Kurt Miller To: Greg Lewis , Alexey Zelkin Message-id: <005701c4a0b9$b0922c20$1d0110ac@focus> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <14C413EDD4FDAB48924086C19BF44F872E053C@MUCS040151.munich.munichre.com> <20040917054616.GA16333@misty.eyesbeyond.com> <20040917071229.GA18547@phantom.cris.net> <20040917134519.GA69537@misty.eyesbeyond.com> <001401c49ce5$9f494700$1d0110ac@focus> cc: openbsd-java@codemonkey.net cc: freebsd-java@freebsd.org Subject: Re: bootstrapping 1.4 with 1.3 (was JDK 1.5 / 5.0) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:34:43 -0000 From: "Kurt Miller" > I've tried the linux and solaris rt.jar and tools.jar, but it fails at the > first invocation of native java with: > > Error occurred during initialization of VM > java.lang.NoSuchMethodError: java.lang.Class.getName()Ljava/lang/String; > > If I can figure this problem out, I think I've got a way to bootstrap > 1.4 using 1.3-linux and various distfiles. While debugging the above problem, I realized that an older version of the linux jdk might work better. I can now bootstrap 1.4 using this method: 1) Use 1.3 java/javac for bootstrapping 1.4 hotspot build 2) Use 1.3 jar in all bootstrap cases 3) Use the linux 1.4 binary release (j2sdk-1_4_2-linux-i586.bin) to get rt.jar and tools.jar and extract only the necessary bootstrap classes. 4) Use a source only dist file containing additional bootstrap files. I'll send a port that uses this method to openbsd-java soonish. -Kurt