From owner-freebsd-java Mon Dec 21 21:10:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26660 for freebsd-java-outgoing; Mon, 21 Dec 1998 21:10:46 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26655 for ; Mon, 21 Dec 1998 21:10:45 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id WAA28052; Mon, 21 Dec 1998 22:10:38 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id WAA04370; Mon, 21 Dec 1998 22:10:37 -0700 Date: Mon, 21 Dec 1998 22:10:37 -0700 Message-Id: <199812220510.WAA04370@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike Jeays Cc: Miguel Sierra , "'freebsd-java@FreeBSD.ORG'" Subject: Re: Java in Freebsd In-Reply-To: References: <211D0157FD1FD21190DB00104B8765E906D0E9@mail> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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". Note, a new release is in the process of being made available. Give me about 2 hours. :) > 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 I wouldn't add the netscape libraries to the mix, since they tend to be netscape specific. > 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 No need. The java shell script does this for you automatically. > You should now be able to compile classes with commands such as: > > javac Yourclass.java > > and run them with: > > java Yourclass Otherwise, this is great advice. Thanks Mike! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message