delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | mwoehlke <mwoehlke AT tibco DOT com> |
Subject: | Re: Help Understanding Path Issue |
Date: | Wed, 28 Jun 2006 21:15:51 -0500 |
Lines: | 33 |
Message-ID: | <e7vd4o$js1$1@sea.gmane.org> |
References: | <006a01c69b13$658a1570$3201a8c0 AT Purcell9100> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 1.5.0.4 (X11/20060516) |
In-Reply-To: | <006a01c69b13$658a1570$3201a8c0@Purcell9100> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Scott Purcell wrote: > I have "CLASSPATHS" and "PATHS" and some "HOME" directories set up. Eg: > ANT_HOME value=C:/ant/bin I assume you meant "CLASSPATH" and "PATH". > When I run ant from a "cmd" window all is good. It picks up the value > and runs fine. But I do not want to use the "cmd" prompt, and would like > to use cygwin. But when I issue ant I get the dreaded error: > Error: JAVA_HOME is not defined correctly. We cannot execute > /cygdrive/c/jdk1.5.0_02/bin/java > > I do not want to change all my HOME, PATH, values because some of the > system software uses them as they are. Can I get around this? Is there > where it makes sense to use a symbolic link? Nope, symlinks will not help you (or at least, they probably won't). If the program that looks at a particular environment variable is a Cygwin program, then the var should give a POSIX path. Otherwise it should give a Windows path. You should only have problems switching between the two if you have programs of both flavors looking at the same variable (other than PATH which Cygwin handles automagically). Example: I assume you are using a non-Cygwin Java (I don't believe I have even heard of a Cygwin JVM, so that seems likely), therefore your JAVAHOME should be a Windows path, regardless of what shell (A cygwin *sh vs. Windows cmd) you are using. Also see 'man cygpath'. -- Matthew This message will self destruct in ten centuries. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |