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.