From owner-freebsd-java Wed Jul 3 12:24:45 2002 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 CFD7B37B400 for ; Wed, 3 Jul 2002 12:24:41 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8634843E3B for ; Wed, 3 Jul 2002 12:24:41 -0700 (PDT) (envelope-from absinthe@pobox.com) Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17Ppjt-0007Iy-00; Wed, 03 Jul 2002 15:24:33 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Dylan Carlson Reply-To: absinthe@pobox.com To: , Subject: Re: Is there any advantage of running a native port? Date: Wed, 3 Jul 2002 15:25:33 -0400 X-Mailer: KMail [version 1.4] References: <000201c222b2$73485b00$0a0119ac@raidworks.com> In-Reply-To: <000201c222b2$73485b00$0a0119ac@raidworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207031525.33019.absinthe@pobox.com> 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 On Wednesday 03 July 2002 12:55pm, Bharath Sankaranarayan wrote: > Dylan: > Thanks for the clarification. I guess I will try to use the native port. > > Is there one included in FreeBSD 4.6 ? > Thanks > Bharath Sort of. Right now, the FreeBSD build of the JVM is going through a certification process with Sun, which means that we can't ship it, and Sun won't post it either until the process is finished. Until then... it takes some work. Below are the steps you need to follow in order to build your own JDK 1.3.1 JVM for now. You cannot legally distribute the JVM you build yourself. Make sure your "ports" tree is up to date before proceeding. You can update your ports tree through the CVSUP mechanism described at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html Steps #3, #5, #8-10 will need to be done as root. 1. Visit http://www.sun.com/software/communitysource/java2/ and manually download the Java 1.3.1 source code. You have to register and log in to do this. 2. Make sure the filename is saved as "j2sdk-1_3_1-src.tar.gz". 3. Put the file in /usr/ports/distfiles/. 4. Visit http://java.sun.com/Download5?config-file=j2sdk-1_3_1_03.config&platform=linux-i386 Download the Linux GNU Zip/Tar (tar.gz) version of the Linux JDK 1.3.1.03. Make sure the filename is saved as "j2sdk-1_3_1_03-linux-i386.bin" 5. Put the file in /usr/ports/distfiles/. 6. Next you will need to download the "patchset", which is coordinated by Greg Lewis, one of the committers. It is available on his website at: http://www.eyesbeyond.com/freebsddom/java/index.html 7. Download the patchset and make sure the filename is: "bsd-jdk131-patches-6.tar.gz". 8. Put the file in /usr/ports/distfiles/. 9. 'cd' to /usr/ports/java/jdk13/ 10. type 'make install' 11. Read the terms and agree. 12. The build should start, go do something else for a while. It will take quite a while before the compile is finished. Once the compile is done, it will be installed in /usr/local/jdk1.3.1/ At this point you can configure your environment to use the JDK however you prefer. I always put a symlink /usr/local/jdk/ pointing to whatever version of the JDK I want to use on my system globally. Then I have (at a minimum) PATH set to "$PATH:/usr/local/jdk/bin". It's probably a good idea to also set your JAVA_HOME variable to the same path you use in PATH. If you regularly use any third-party classes or JAR files, be sure to set a CLASSPATH variable accordingly. If you have any compile problems (you shouldn't) let us know. Cheers, -- Dylan Carlson [absinthe@pobox.com] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message