Skip site navigation (1) Skip section navigation (2)

FreeBSD Java® Project: FAQ

Contents

  1. Is there a JDK® 1.3 for FreeBSD?
  2. Can I use the Linux-Port from the Blackdown people?

Full Text

1. Is there a JDK® 1.3 for FreeBSD?

Yes. You can build a native FreeBSD JDK from source, or download pre-compiled binaries. See the FreeBSD Java front page for more information.

Prev Top Next

2. Can I use the Linux-Port from the Blackdown people?

Some people reported success in doing so. Try the following: Get the archive, extract it somewhere. Then apply the following diff:
	  --- bin/.java_wrapper.dist      Thu Jun  3 01:14:34 1999
	  +++ bin/.java_wrapper   Thu Oct 14 19:17:11 1999
	  @@ -31,8 +31,8 @@
	  # Resolve symlinks. See 4152645.
	  while [ -h "$PRG" ]; do
	  ls=`/bin/ls -ld "$PRG"`
	  -    link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
	  -    if /usr/bin/expr "$link" : '/' > /dev/null; then
	  +    link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
	  +    if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then
	  PRG="$link"
	  else
	  PRG="`/usr/bin/dirname $PRG`/$link"
	  @@ -63,7 +63,7 @@
	  # Select vm type (if classic vm, also select thread type).
	  unset vmtype
	  unset ttype
	  -DEFAULT_THREADS_FLAG="native"
	  +DEFAULT_THREADS_FLAG="green"
	  if [ "x$1" = "x-hotspot" ]; then
	  vmtype="hotspot"
	  ttype="native"_threads
	  --- jre/bin/.java_wrapper.dist  Thu Jun  3 01:14:34 1999
	  +++ jre/bin/.java_wrapper       Thu Oct 14 19:32:06 1999
	  @@ -31,8 +31,8 @@
	  # Resolve symlinks. See 4152645.
	  while [ -h "$PRG" ]; do
	  ls=`/bin/ls -ld "$PRG"`
	  -    link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
	  -    if /usr/bin/expr "$link" : '/' > /dev/null; then
	  +    link=`/compat/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
	  +    if /compat/linux/usr/bin/expr "$link" : '/' > /dev/null; then
	  PRG="$link"
	  else
	  PRG="`/usr/bin/dirname $PRG`/$link"
	  @@ -63,7 +63,7 @@
	  # Select vm type (if classic vm, also select thread type).
	  unset vmtype
	  unset ttype
	  -DEFAULT_THREADS_FLAG="native"
	  +DEFAULT_THREADS_FLAG="green"
	  if [ "x$1" = "x-hotspot" ]; then
	  vmtype="hotspot"
	  ttype="native"_threads

Thanks to Makoto MATSUSHITA (matusita@ics.es.osaka-u.ac.jp)

Prev Top Next