<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!ENTITY base CDATA "../..">
<!ENTITY date "$FreeBSD: www/en/java/docs/faq.sgml,v 1.7 2003/12/27 05:15:24 rwatson Exp $">
<!ENTITY title "FreeBSD &java; Project: FAQ">
<!ENTITY % navincludes SYSTEM "../../includes.navdevelopers.sgml"> %navincludes;
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
]>
<html>
&header;

<table border="0">
<tr>
<td>
    <h2>Contents</h2>
    <ol>
      <li> <a href="#q1">Is there a &jdk; 1.3 for FreeBSD?</a>
      <li> <a href="#q2">Can I use the Linux-Port from the Blackdown people?</a>
    </ol>
    <h2>Full Text </h2> 
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
	<TD BGCOLOR="#990000" WIDTH="10">
	<font color="#FFFFFF"><a name="q1"> 1.</a></font>
	</TD>
	<TD ALIGN="LEFT" VALIGN="TOP" BGCOLOR="#ffcc66" colspan=3>
	  Is there a &jdk; 1.3 for FreeBSD?
	</TD>
      </tr>
      <tr>
	<TD BGCOLOR="#990000" WIDTH="10"> <br> </TD>
	<TD ALIGN="LEFT" VALIGN="TOP" colspan=3> 
	  Yes.  You can build a native FreeBSD JDK from source, or download
	  pre-compiled binaries.  See the FreeBSD Java front page for more
	  information.
	</TD>
      </tr>
      <tr bgcolor="#ffcc66">
	<TD BGCOLOR="#990000" WIDTH="10"><br></td>
	<td><font color="#990000"><strong>Prev</strong></font></td>
	<td align=center><font color="#990000"><strong>Top</strong></font></td>
	<td align=right><font color="#990000"><strong>Next</strong></font></td>
      </tr>
<tr><td colspan=4><br></td></tr>
      <tr>
	<TD BGCOLOR="#990000" WIDTH="10">
	  <FONT color="#FFFFFF"><a name="q2"> 2.</a></font></TD>
	<TD ALIGN="LEFT" VALIGN="TOP" BGCOLOR="#ffcc66" colspan=3>
	  Can I use the Linux-Port from the Blackdown people?
	</TD>
      </tr>
      <tr>
	<TD BGCOLOR="#990000" WIDTH="10"> <BR> </TD>
	<TD ALIGN="LEFT" VALIGN="TOP" colspan=3> 
	  Some people reported success in doing so. Try the following:
	  Get the archive, extract it somewhere. Then apply the following diff: <br>
	  <pre>
	  --- 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</pre><br> 
	  Thanks to Makoto MATSUSHITA (matusita@ics.es.osaka-u.ac.jp)
	</TD>
      </tr>
      <tr bgcolor="#ffcc66">
	<TD BGCOLOR="#990000" WIDTH="10"><br></td>
	<td><font color="#990000"><strong>Prev</strong></font></td>
	<td align=center><font color="#990000"><strong>Top</strong></font></td>
	<td align=right><font color="#990000"><strong>Next</strong></font></td>
      </tr>
    </table>
</td>
</tr>
</table>
&footer;	
</BODY>
</HTML>