Skip site navigation (1)Skip section navigation (2)
Date:      01 May 2005 09:20:55 -0400
From:      Lowell Gilbert <freebsd-stable-local@be-well.no-ip.com>
To:        jay@codegurus.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Weird jdk14 build
Message-ID:  <443bt7rsjs.fsf@be-well.ilk.org>
In-Reply-To: <1114947298.71683.17.camel@jayton.ath.cx>
References:  <20050430120037.5448916A4DF@hub.freebsd.org> <1114947298.71683.17.camel@jayton.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
Jayton Garnett <jay@codegurus.org> writes:

> Hello,
> 
> This weekend i've been reinstalling fbsd on my desktop and while
> installing /usr/ports/java//jdk14 (yes i downloaded all the files from
> sun and the patch-kit) While it was compiling I had a syntax error
> something like expected "(" somewhere or other, but i noticed this
> little message before that error:
> 
> ======================================================================
> Warning: This JDK may be unstable. You are advised to use the native
> FreeBSD JDK, in ports/java/jdk14.
> 
> This Java VM will attempt to obtain some system information by
> accessing files in linux's procfs.  You must install the Linux
> emulation procfs filesystem for this to work correctly.  The JVM
> will exhibit various problems otherwise.  This can be accomplished
> by adding the following line to your /etc/fstab file:
> 
>  linprocfs   /compat/linux/proc   linprocfs   rw   0  0
> 
> and then, as root, executing the commands:
> 
> kldload linprocfs
> mount /compat/linux/proc
> =======================================================================
> 
> Well thats just weird since i was in /usr/ports/java/jdk14 when
> installing java.
> 
> I have since added that line to my fstab(so i dont have to do this next
> time), loaded linprocfs and mounted /compat/linux/proc.
> It is currently compiling fine now since i have done that, but could
> anyone tell me why it says to use the native fbsd jdk14 when i was using
> it in the first place and it wanted me to enable linux proc compat. ?
> 
> Is it just that they need to update the build messages for the native
> fbsd jdk14?

No; you need to use Java to build Java.  Therefore, the procedure is
to use the precompiled Linux jdk to build the native one.  Once the
native one is built, you can remove the Linux one.

> Pitty there are no packages for this.

Yes.  But it's not free software, so that's the way it goes.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443bt7rsjs.fsf>