From owner-freebsd-java Mon Dec 21 21:02:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA25943 for freebsd-java-outgoing; Mon, 21 Dec 1998 21:02:00 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from WEBBSD1.turnaround.com.au (webbsd1.turnaround.com.au [203.39.138.49]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA25920 for ; Mon, 21 Dec 1998 21:01:57 -0800 (PST) (envelope-from J_Shevland@TurnAround.com.au) Received: from TurnAround.com.au (ras4.turnaround.com.au [192.168.1.115]) by WEBBSD1.turnaround.com.au (8.8.7/8.8.7) with ESMTP id QAA26543; Tue, 22 Dec 1998 16:04:53 +1100 (EST) (envelope-from J_Shevland@TurnAround.com.au) Message-ID: <367F2578.B448F62@TurnAround.com.au> Date: Tue, 22 Dec 1998 15:52:08 +1100 From: Joe Shevland Organization: Turnaround Solutions Pty. Ltd. X-Mailer: Mozilla 4.06 [en] (Win95; I) MIME-Version: 1.0 To: Mike Jeays CC: Miguel Sierra , "'freebsd-java@FreeBSD.ORG'" Subject: Re: Java in Freebsd References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike Jeays wrote: > > On Mon, 21 Dec 1998, Miguel Sierra wrote: > > > > > I have read a lot about java and have mess a lot with it in Windows > > platforms and all kinds of programs that are done for Windows95 using > > the JDK from Sun. Could anybody tell me the procedure to make java work > > and compile in FreeBsd??? > > > > I know this sounds like a basic question, but I'm just getting to > > configure my FreeBsd machine to have all the things I'll like to learn > > about. > > > > Thank you for reading, > > > > Miguel. > > > Try the following: > > Download a copy of the jdk from ftp.freebsd.org. It is a file named > "jdk1.1.7.V98-11-5.tar.gz". > > Make sure you are logged on as root. > > Execute the commands: > cd /usr/local > tar -xvzf {download directory}/jdk1.1.7.V98-11-5.tar.gz > > Change your .cshrc file to include the following references to the JDK > setenv CLASSPATH .:/usr/local/jdk1.1.7/classes:/usr/local/lib/netscape > setenv LD_LIBRARY_PATH > /usr/local/jdk1.1.7/lib/i386:/usr/local/qt/lib:/usr/lesstif/lib:/usr/local/lib:/usr/local/pgsql/lib I guess the only bit I'd add for a learner's sake is that in your LD_LIBRARY_PATH the important bit is the /usr/local/jdk117/lib/i386 the rest is Mike's system dependant stuff like Postgres libs etc. Similarly in the CLASSPATH, the jdk classes are succeded here by a reference to classes bundled with Netscape. You may or may not want the Netscape ones, and you may have other JAR or ZIP files you want to include. e.g. setenv CLASSPATH .:/usr/local/jdk1.1.7/classes:/usr/local/myjava/myjarfile.jar Joe with his 0.02 worth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message