Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 46158 invoked from network); 12 Jun 2002 16:52:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Jun 2002 16:52:02 -0000 Received: (qmail 14070 invoked by uid 97); 12 Jun 2002 16:51:58 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 14054 invoked by uid 97); 12 Jun 2002 16:51:57 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14042 invoked by uid 98); 12 Jun 2002 16:51:57 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Subject: RE: JAVA_HOME path problem in linux Date: Wed, 12 Jun 2002 18:52:16 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JAVA_HOME path problem in linux Thread-Index: AcISL8Jra1Sw5nEuTfS8/62Jt45arwAAVzpQ From: "GOMEZ Henri" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >So now you know where java is. Then it is trivial to set=20 >JAVA_HOME (in the >case above, it is under /usr/java/jdk1.3.1_03 on my PC). Here is a little script I add in /etc/profile.d/java.sh : #!/bin/bash if [ -d /opt/IBMJava2-131/bin ]; then if [ -z ${JAVA_HOME} ]; then export JAVA_HOME=3D/opt/IBMJava2-131 export PATH=3D$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=3D$CLASSPATH:$HOME fi fi Replace /opt/IBMJava2-131 by the location of your prefered JDK -- To unsubscribe, e-mail: For additional commands, e-mail: