Date: Wed, 2 Oct 2002 16:20:19 -0400 From: "MET" <met@uberstats.com> To: <jgrosch@mooseriver.com>, "'Matt Smith'" <matt@forsetti.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: JDK13 Message-ID: <000901c26a51$421ae7f0$0200a8c0@SURVIVAL> In-Reply-To: <20021002192223.GA7293@mooseriver.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks a lot guys it seems to be working just fine now =) ~ Matthew P.S. Now I don't have to use the legacy machines at my schools lab running Solaris (with 32MB of RAM). -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Josef Grosch Sent: Wednesday, October 02, 2002 3:22 PM To: Matt Smith Cc: MET; freebsd-questions@FreeBSD.ORG Subject: Re: JDK13 On Wed, Oct 02, 2002 at 02:03:48PM -0400, Matt Smith wrote: > either add /usr/local/jdk1.3.1/bin/ to your PATH, or simply make > soft-links (or hard links, at your preference): > > ln -s /usr/local/jdk1.3.1/bin/java /usr/local/bin/java > > HOWEVER, I believe (from my minimal Java experience) that the Java > utilities will look for CLASS_PATHs and other java "Stuff" relative to > location of java binaries. Executing via link from another location > (like /usr/local/bin) may cause issues. But again, my Java experience > is minimal, and I may be waaay off. Perhaps someone on this list can > clarify? -Matt You are almost there. The environment variable, CLASSPATH, contains a list of directories and Jars that contain java classes. For example in my .bashrc I have the following; export JAVA_HOME=/usr/local/jdk1.3.1 CLASSPATH=.:$JAVA_HOME CLASSPATH=$CLASSPATH:$JAVA_HOME/bin CLASSPATH=$CLASSPATH:/usr/local/share/java/classes/crimson.jar CLASSPATH=$CLASSPATH:/usr/local/share/java/classes/postgresql.jar CLASSPATH=$CLASSPATH:/usr2/home/jgrosch/MooseRiver/Java/Classes/mooseriv er.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat3.3.1/lib/common/servlet.j ar export CLASSPATH There needs to be an environment variable, JAVA_HOME which points to /usr/local/jdk1.3.1. Of course, /usr/local/jdk1.3.1/bin needs to be in the environment variable, PATH. Hope this helps. Josef -- == Copyright(c) 2002 by Josef Grosch. All rights reserved. == == == Josef Grosch | Another day closer to a | FreeBSD 4.6.2 jgrosch@MooseRiver.com | Micro$oft free world | www.bafug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901c26a51$421ae7f0$0200a8c0>