From owner-freebsd-java Mon Dec 21 19:45:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15138 for freebsd-java-outgoing; Mon, 21 Dec 1998 19:45:02 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from stcgate.statcan.ca (stcgate.statcan.ca [142.206.192.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15122 for ; Mon, 21 Dec 1998 19:44:58 -0800 (PST) (envelope-from jeays@statcan.ca) Received: from stcinet (stcinet.statcan.ca [142.206.128.146]) by stcgate.statcan.ca (8.9.1/8.6.9) with SMTP id WAA05377; Mon, 21 Dec 1998 22:51:06 -0500 (EST) Received: from statcan.ca by statcan.ca (SMI-8.6/SMI-SVR4) id WAA18174; Mon, 21 Dec 1998 22:48:48 -0500; sender jeays@statcan.ca Date: Mon, 21 Dec 1998 22:44:53 -0500 (EST) From: Mike Jeays X-Sender: jeays@austral To: Miguel Sierra cc: "'freebsd-java@FreeBSD.ORG'" Subject: Re: Java in Freebsd In-Reply-To: <211D0157FD1FD21190DB00104B8765E906D0E9@mail> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 (If you don't use csh, make equivalent changes to classpath and ld_library path in the .login file) You should now be able to compile classes with commands such as: javac Yourclass.java and run them with: java Yourclass Good luck! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message