How to build JDK15 on AMD64 with FreeBSD?

Greg Lewis glewis at eyesbeyond.com
Sun Jun 26 04:24:12 GMT 2005


On Fri, Jun 24, 2005 at 05:02:56PM -0500, Neo Jia wrote:
> These days, I tried to build the JDK15 on AMD64 with Fedora Core 3, but 
> failed. And I happened to find out that in these two mailing lists, 
> there were many  people who had successfully built it with FreeBSD. I 
> hope I could get some detailed information about the building procedure. 
> Do you also use the source code from SUN SCSL or another version 
> maintained by FreeBSD.org? What is the requirement I should meet to 
> build it on FreeBSD, such as the version of FreeBSD? Do I still need GCC 
> 3.2.2?
> 
> Sorry about so many questions at the first time. Your instructions will 
> be greatly appreciated!

We use the Sun SCSL source code as the base for our port.  However, many
patches are required for it to build on FreeBSD.  These are contained in
a patchset that you can download at

http://www.eyesbeyond.com/freebsddom/java/jdk15.html

The easiest way to do this is simply to use the jdk15 port.  Simply do the
following:

cd /usr/ports/java/jdk15
make install

and follow the instructions.  There is one caveat on amd64 -- one of the
build commands will fail strangely (this is a bug in the Linux emulation
on amd64 as far as I can determine).  Simply execute that command by hand
and restart the build.  Also, if you have an EM64T rather than an actual
amd64 then you will need one patch (just reply to me and I can send it to
you or search the mailing list archives and you should find it).

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list