From owner-freebsd-questions Wed Oct 2 13:20:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0881237B401 for ; Wed, 2 Oct 2002 13:20:24 -0700 (PDT) Received: from syr.edu (syr.edu [128.230.1.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B6BD43E6A for ; Wed, 2 Oct 2002 13:20:23 -0700 (PDT) (envelope-from met@uberstats.com) Received: from SURVIVAL (syru241-188.syr.edu [128.230.241.188]) by syr.edu (8.9.3/8.9.3) with ESMTP id QAA06903; Wed, 2 Oct 2002 16:20:10 -0400 (EDT) From: "MET" To: , "'Matt Smith'" Cc: Subject: RE: JDK13 Date: Wed, 2 Oct 2002 16:20:19 -0400 Message-ID: <000901c26a51$421ae7f0$0200a8c0@SURVIVAL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <20021002192223.GA7293@mooseriver.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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