From owner-freebsd-java@FreeBSD.ORG Tue Oct 28 07:27:20 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA63716A4CF for ; Tue, 28 Oct 2003 07:27:20 -0800 (PST) Received: from iwmail.xpdial.com (iwgate.xpdial.com [68.156.89.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id D81DF43FCB for ; Tue, 28 Oct 2003 07:27:19 -0800 (PST) (envelope-from mark@s-wit.net) Received: from [192.168.101.251] by iwmail.xpdial.com (ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.4.1)); Tue, 28 Oct 2003 10:30:36 -0500 Message-ID: <001b01c39d68$796f9020$fb65a8c0@ocfl061> From: "M.D. DeWar" To: Date: Tue, 28 Oct 2003 10:30:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Newbie attempting to install java on FreeBSD - what a adventure. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 15:27:20 -0000 Hello, I am trying to get java to install/run/ on a FreeBSD 4.8 box. I ain't bitching or complaining. Maybe whinning. Okay am whinning. Its a bitch to get this running. In reading I understand its mostly Sun's refusal to be helpful. Or at least thats the impression I got in reading pages/mail list postings on the net. Hopefully someone outthere can help me get this thing going. This is a normal freebsd install. no kernel options were passed other than defaults. This webpage http://www.freebsd.org/java/install.html said to do this: Installing FreeBSD's JDKT is typically straightforward: cd /usr/ports/java/jdk make make install make clean Okay did that. I got a directory under /usr/local/linux-sun-jdk1.4.1 I had to fill out some license stuff I think. I have done so much can't recall what I did at times or when or whatever. arghh. When I try to run babylon chatserver I get this: spiderman# ./java /temp/babylon-2.1_BETA/babylonServer Exception in thread "main" java.lang.NoClassDefFoundError: /temp/babylon-2/1_BET A/babylonServer Doing some more google searches I found kaffe-1.0.7. Downloaded it. Did its thing. It fails to run. More google searches and I found something called diablo. http://www.freebsdfoundation.org/downloads/java.shtml spiderman# cd diablo-jre1.3.1/ spiderman# ls ControlPanel.html bin plugin README lib Welcome.html man spiderman# cd bin spiderman# ls .java_wrapper awt_robot java policytool rmiregistry ControlPanel i386 keytool rmid tnameserv spiderman# ./java /temp/babylon-2.1_BETA/babylonServer Exception in thread "main" java.lang.NoClassDefFoundError: /temp/babylon-2/1_BET A/babylonServer I added to profiles per some docs. JAVA_HOME=/usr/local/linux-sun-jdk1.4.1 export JAVA_HOME CLASSPATH=.:${JAVA_HOME}jre/lib/rt.jar:/jre/lib/javaplugin.jar:/jre/lib/sinr asig export CLASSPATH I put some patchsets into /usr/ports per some docs: spiderman# cd /usr/ports/distfiles/ spiderman# ls BUILD jdk14.patches autoconf-2.53.tar.bz2 libtool-1.3.4.tar.gz bsd-jdk14-patches-3.tar m4-1.4.tar.gz help2man-1.29.tar.gz patch-pthread_attr_get_np.c j2sdk-1_4_1_02-linux-i586.bin More google searches brought me here: http://www.eyesbeyond.com/freebsddom/java/jdk14.html However I am not sure if I did the patches right. I don't think I did. The docs were pretty vague for a newbie on running the patch on were I should copy the patch to, were I should be to run it. And theres no contact addy for any type of help so found it to be useless for me a dumbshit newbie. In the build readme it says for experienced but hell out the hell is a newbie to get experience with incomplete docs like this: These instructions are intended for people who have experience manually compiling the JDK or who are experienced with large complex package compilation. They were originally provided by Alexey Zelkin. You need one of the following setups: FreeBSD 4.7-STABLE or 5.0-CURRENT (After 07-Jan-2003) or 5.0-RELEASE (with included patch-libc_r-pthread_attr_get_np.c applied.) -OR- Stock FreeBSD 4.7-STABLE or 5.0-CURRENT (After 04-Feb-2003) -OR- NetBSD -current (with Scheduler Activations) OpenMotif 2.1.30 or later. GNU Make 3.79.1 Unzip 5.50 to unpack the source code. You'll also need a working JDK 1.4.1 compiler to bootstrap the process. Both FreeBSD and NetBSD include appropriate Linux JDKs which run under emulation and can be used to bootstrap. On FreeBSD the preferred port is java/linux-sun-jdk14, on NetBSD its lang/sun-jdk14. Here is a typical set up for your build environment: unsetenv LANG <<<<< ??????? unsetenv JAVA_HOME <<