Help: Install JDK 1.5 on FreeBSD 5.4 AMD64

Alex Hayward xelah at xelah.com
Mon Oct 24 03:40:09 PDT 2005


On Sun, 23 Oct 2005, Tanya N kessler wrote:

> O.K., I did a totally fresh install of FreeBSD 5.4 on
> AMD64.  Updated CVS with the stable verison 5.x.  Did
> a portupgrade of all src and port.  Built and
> installed a kernel w/COMPAT_LINUX32 support.  Added
> linprocfs to my fstab.  Built and installed
> linux-sun-jdk14.  Then I go to build native jdk15 and
> I still get the same error.  javac is executable by
> user, group, and others.  I'm not sure how to tell if
> the VM loads O.K. from linprocfs.  All I know is that
> I just switched to FreeBSD.  I like a lot, but I can't
> seem to get native java work.  Will someone please
> tell me what I am doing wrong...

[snip]

> > >> fi
> > >> execv(): Bad address
> > >> Error trying to exec
> > /usr/local/linux-sun-jdk1.4.2/bin/javac.
> > >> Check if file exists and permissions are set
> > correctly.

I believe this is something's way of saying 'that command's far too long,
I'm not running that!'. Above the error you'll find an enormous command
displayed. cd in to the right directory (probably
/usr/ports/java/jdk15/work/j2se/make/java/nio, but it'll be displayed
somewhere by gmake) and run this command by hand in your shell. Then go
back to the port and run 'make' again.



More information about the freebsd-java mailing list