Subject: Re: Java 2 on NetBSD.
To: S.Ladopoulos <S.Ladopulos@westminster.ac.uk>
From: Michael Santos <mike@ethmoid.org>
List: netbsd-help
Date: 07/13/2000 18:55:20
On Thu, Jul 13, 2000 at 08:30:08PM +0100, S.Ladopoulos wrote:

> 	I wish to use Java 1.2.2 OR 1.3 on NetBSD. I know that sun does
> not provide an implementation for NetBSD, are there any alternatives?

I run Blackdown jdk1.2.2 on my laptop (NetBSD 1.5B) under Linux
emulation to test out our developer's apps. The installation process
is fairly straightforward: untar the linux jdk under the emulation
hierarchy, grab a copy of "expr" from a Linux dist and place it in
the usr/bin of your Linux directory, then patch jdk1.2.2/bin/.java_wrapper
and jdk1.2.2/jre/bin/.java_wrapper to support green threads.

I'd love native java support under NetBSD. Unfortunately, I was forced to
move over our webservers to Linux in order to support Jserv.

-- 
Michael Santos
mike@ethmoid.org

*** .java_wrapper	Thu Jan 27 18:11:49 2000
--- /emul/linux/usr/local/jdk/bin/.java_wrapper	Wed Jun 21 10:18:35 2000
***************
*** 33,38 ****
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /usr/bin/expr "$link" : '/' > /dev/null; then
  	PRG="$link"
      else
--- 33,38 ----
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/emul/linux/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /emul/linux/usr/bin/expr "$link" : '/' > /dev/null; then
  	PRG="$link"
      else
***************
*** 66,70 ****
  unset vmtype
  unset ttype
! DEFAULT_THREADS_FLAG=native
  if [ "x$1" = "x-hotspot" ]; then
      vmtype=hotspot
--- 66,70 ----
  unset vmtype
  unset ttype
! DEFAULT_THREADS_FLAG=green
  if [ "x$1" = "x-hotspot" ]; then
      vmtype=hotspot