X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=AWL,BAYES_00,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4C5320F2.6020207@bopp.net>
Date: Fri, 30 Jul 2010 13:58:58 -0500
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Question on Java and Cygwin
References: <OF593E7D3D.EA2CD570-ON86257770.00673592-86257770.0067F72A@ni.com>
In-Reply-To: <OF593E7D3D.EA2CD570-ON86257770.00673592-86257770.0067F72A@ni.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 7/30/2010 1:55 PM, Ernest Mueller wrote:
> 
> We are trying to launch some Java apps from within Cygwin.  The problem
> we're having is that then Java file IO operations want to use Windows paths
> and use \ as the default path separator.  (This is different from classpath
> problems or using cygpath to convert stuff you're passing in on the command
> line).  We need to override the File.separator (path separator) so that
> Java will be able to perform many file IO operations (like making a
> directory).  Anyone have any experience with that?

I'm not sure about this, but I think you're having problems handing
filesystem paths between Cygwin and Java processes.  If that's the case,
you should use the cygpath tool included with Cygwin to convert paths
back and forth as necessary.

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

