Date: Mon, 21 Dec 1998 22:10:37 -0700 From: Nate Williams <nate@mt.sri.com> To: Mike Jeays <jeays@statcan.ca> Cc: Miguel Sierra <msierra@bvinet.com>, "'freebsd-java@FreeBSD.ORG'" <freebsd-java@FreeBSD.ORG> Subject: Re: Java in Freebsd Message-ID: <199812220510.WAA04370@mt.sri.com> In-Reply-To: <Pine.SOL.3.96.981221224014.15499A-100000@austral> References: <211D0157FD1FD21190DB00104B8765E906D0E9@mail> <Pine.SOL.3.96.981221224014.15499A-100000@austral>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812220510.WAA04370>