From owner-freebsd-questions Wed Oct 2 12:23: 0 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 E3AD637B401 for ; Wed, 2 Oct 2002 12:22:58 -0700 (PDT) Received: from gdead.mooseriver.com (gdead.mooseriver.com [205.166.121.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E79B43E3B for ; Wed, 2 Oct 2002 12:22:58 -0700 (PDT) (envelope-from jgrosch@mooseriver.com) Received: from mooseriver.com (superior.mooseriver.com [66.166.75.170]) by gdead.mooseriver.com (8.12.3/8.12.3) with ESMTP id g92JMi7C019923; Wed, 2 Oct 2002 12:22:44 -0700 (PDT) (envelope-from jgrosch@mooseriver.com) Received: (from jgrosch@localhost) by mooseriver.com (8.12.3/8.12.3/Submit) id g92JMOSO007401; Wed, 2 Oct 2002 12:22:24 -0700 (PDT) Date: Wed, 2 Oct 2002 12:22:23 -0700 From: Josef Grosch To: Matt Smith Cc: MET , freebsd-questions@FreeBSD.ORG Subject: Re: JDK13 Message-ID: <20021002192223.GA7293@mooseriver.com> Reply-To: jgrosch@mooseriver.com References: <000101c26a39$4482ad10$0200a8c0@SURVIVAL> <1033581828.4785.9.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1033581828.4785.9.camel@localhost> User-Agent: Mutt/1.4i 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 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/mooseriver.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat3.3.1/lib/common/servlet.jar 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