From owner-freebsd-newbies@FreeBSD.ORG Mon Dec 13 05:19:42 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FEA516A4CE for ; Mon, 13 Dec 2004 05:19:42 +0000 (GMT) Received: from tomts20-srv.bellnexxia.net (tomts20.bellnexxia.net [209.226.175.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7B2143D2F for ; Mon, 13 Dec 2004 05:19:41 +0000 (GMT) (envelope-from j.telford@sympatico.ca) Received: from [192.168.0.10] ([65.94.51.10]) by tomts20-srv.bellnexxia.net ESMTP <20041213051940.TTXV2034.tomts20-srv.bellnexxia.net@[192.168.0.10]> for ; Mon, 13 Dec 2004 00:19:40 -0500 Message-ID: <41BD2AE7.6030900@sympatico.ca> Date: Mon, 13 Dec 2004 00:38:47 -0500 From: John User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-newbies@freebsd.org References: <41AD0BDE.7090207@satx.rr.com> <41AD4233.9090309@daleco.biz> <41AD5B8E.90707@sympatico.ca> <41AEA953.60205@sympatico.ca> In-Reply-To: <41AEA953.60205@sympatico.ca> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Java port X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 05:19:42 -0000 Update: December 12, 2004, The jdk146 port has been updated and is no longer forbidden and I successfully upgraded from jdk1.4.2p6_6 in the following way: As of Dec 12, 2004 - this may change tomorrow or in the next 10 minutes, such is the nature of ports ;) - cvsup all ports. - installed portupgrade port, check it's man page for proper use and cautions. - loaded linprococfs which was required on the first build. # kldload linprocfs # mount -t linprocfs linprocfs /compat/linux/proc - get the proper port name with 'portversion', first time may take a while and may fail on error. see note on portupgrade at freshports.org for solution. # portversion -v - run portupgrade, i prefer to do just jdk by itself to see how it goes. I had not removed the files from the /usr/ports/distfiles and used the same jdk and bsd patch files. Earlier jdk versions will require downloads first. # portupgrade -v -l Everything compiled fine and I did not hit the 'hotspot' error as in the first build. - I then upgrade the rest of the of the outdated ports with: # portupgrade -arR -l Thats your choice of course. John wrote: > My notes are below and are current only to November 28, 2004. > FreeBSD 4.10 jdk142 >> I have notes on all this from the build i just finished at the office >> and will post. >> Tip #1 >> You can only use "make minimal=YES" on the current port <= that case >> may be backwards. Due to the java security bug found last week. >> Update all ports first - it has a lot of dependents. >> This is a brutal build, takes hours on the fastest dual box, my notes >> will help save you some trouble hopefully. Anyone know a faster way to >> get jdk on a freebsd box ? >> J >> > > Building java jdk142 from ports. > > Update all ports first – it has a lot of dependents. > If building remotely install 'screen' from ports. It will allow you to > attach detach from the session. Warning do not pkg_add screen, it has a > race problem. > > > The build will ask you for required files to be downloaded to > /usr/ports/distfiles, these are from a build on Nov 28, 2004. Update > ports and check the Makefile for changes or do the make and grab the > files as they come up. > > From http://www.eyesbeyond.com/freebsddom/java/JDK14SCSLConfirm.html > you need the FreeBSD Patchset. > bsd-jdk14-patches-6.tar.gz > > From Sun download: > j2sdk-1_4_2-bin-scsl.zip > j2sdk-1_4_2-src-scsl.zip > j2sdk-1_4_2_06-linux-i586.bin > > > make MINIMAL=yes install to avoid JAVA vulnerability, that currently > exists on Nov 28, 2004. You won't get the Browser plug-in. > > After hours compiling it will probably error on : > > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location > /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/CurrencyData.java:1: > 'class' or 'interface' expected > Java HotSpot(TM) Client VM warning: Can't detect initial thread stack > location > > Solution is: > http://groups.google.ca/groups?hl=en&lr=&threadm=mwhQc.246469%24Oq2.107712%40attbi_s52&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26q%3Dfreebsd%2B%27class%27%2Bor%2B%27interface%27%2Bexpected%26btnG%3DSearch > > > "Edit > /usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/java/util/CurrencyData.java > > > There are two lines, 1st and last, that begin with "Java HotSpot(TM)", > comment > them out with //." > > I only had to comment the first line. > > Restart (it's not from the beginning as long as you have'nt done a 'make > clean' ) you will get the instructions: > > make MINIMAL=yes install > ===> Building for jdk-minimal-1.4.2p6_6 > ERROR: You have to have LINPROCFS mounted before > starting to build of native JDK 1.4.2. > > You may do it by following set of commands: > # kldload linprocfs > and > # mount -t linprocfs linprocfs /compat/linux/proc > *** Error code 1 > Stop in /usr/ports/java/jdk14. > > So do that: > server01# kldload linprocfs > server01# mount -t linprocfs linprocfs /compat/linux/proc > > Load and continue compiling. > It should now complete fairly quick. > > Regards, John.