delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,TW_YG |
X-Spam-Check-By: | sourceware.org |
In-Reply-To: | <4C5320F2.6020207@bopp.net> |
References: | <OF593E7D3D DOT EA2CD570-ON86257770 DOT 00673592-86257770 DOT 0067F72A AT ni DOT com> <4C5320F2 DOT 6020207 AT bopp DOT net> |
Subject: | Re: Question on Java and Cygwin |
X-KeepSent: | B2177B85:286F742E-86257770:0069B6FC; type=4; flags=0; name=$KeepSent |
To: | cygwin AT cygwin DOT com |
Message-ID: | <OFB2177B85.286F742E-ON86257770.0069B6FC-86257770.0069DA2F@ni.com> |
From: | Ernest Mueller <Ernest DOT Mueller AT ni DOT com> |
Date: | Fri, 30 Jul 2010 14:16:11 -0500 |
MIME-Version: | 1.0 |
X-Proofpoint-Virus-Version: | vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-07-30_04:2010-07-30,2010-07-30,1970-01-01 signatures=0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Am trying to use Java file.io without shelling out all the time. To use cygpath you basically have to spawn shells to do any IO commands, which is not a best practice. E ______________________ UN-altered REPRODUCTION and DISSEMINATION of this IMPORTANT information is ENCOURAGED. From: Jeremy Bopp <jeremy AT bopp DOT net> To: cygwin AT cygwin DOT com Date: 07/30/2010 01:59 PM Subject: Re: Question on Java and Cygwin Sent by: cygwin-owner AT cygwin DOT 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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |