Date: Wed, 3 Jul 2002 15:25:33 -0400 From: Dylan Carlson <absinthe@pobox.com> To: <bnarayan@raidworks.com>, <freebsd-java@FreeBSD.ORG> Subject: Re: Is there any advantage of running a native port? Message-ID: <200207031525.33019.absinthe@pobox.com> In-Reply-To: <000201c222b2$73485b00$0a0119ac@raidworks.com> References: <000201c222b2$73485b00$0a0119ac@raidworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207031525.33019.absinthe>