Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 22:44:53 -0500 (EST)
From:      Mike Jeays <jeays@statcan.ca>
To:        Miguel Sierra <msierra@bvinet.com>
Cc:        "'freebsd-java@FreeBSD.ORG'" <freebsd-java@FreeBSD.ORG>
Subject:   Re: Java in Freebsd
Message-ID:  <Pine.SOL.3.96.981221224014.15499A-100000@austral>
In-Reply-To: <211D0157FD1FD21190DB00104B8765E906D0E9@mail>

next in thread | previous in thread | raw e-mail | index | archive | help



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.96.981221224014.15499A-100000>