Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00c801c309cf$b5079880$6dee86d9@ellixia> From: "Elfyn McBratney" To: "cygwin" , "Steve" References: Subject: Re: Path : Win 2k : Munged Directory Date: Wed, 23 Apr 2003 20:36:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 > Hi; > > I'm using cygwin on a win2k box. > > I haven't had any luck executing java from bash. > It works from DOS. > > The java path is C:\JDK\bin > > It is included in my PATH variable through windows via > Start | Control Panel | System | Advanced | Environment Variables > > All of the directories in my PATH are set from here. > > When I run "echo $PATH" from bash I noticed that all of those other > directories in my PATH are correctly translated from windows to cygwin > format. In other words C:\Foo becomes /cygdrive/c/Foo in bash. > > However C:\JDK\bin remains C:\JDK\bin Are you exporting PATH after modifying it? $ export PATH=$PATH:$(cygpath -u C:\\JDK\\bin) $ echo $PATH $ java -version > I'm guessing this has something to do with the problem. > Any ideas on how I can fix it? cygcheck output may help you along the way. :-) If you attach the output from `cygcheck -svr' as a *non-compressed* plain-text attachment. > I already tried setting a path variable in my .bashrc to no avail. > My windows PATH variable is set for the entire system. Elfyn -- 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/