delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/30/15:51:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4C532D0B.5080803@cwilson.fastmail.fm>
Date: Fri, 30 Jul 2010 15:50:35 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Question on Java and Cygwin
References: <OF593E7D3D DOT EA2CD570-ON86257770 DOT 00673592-86257770 DOT 0067F72A AT ni DOT com>
In-Reply-To: <OF593E7D3D.EA2CD570-ON86257770.00673592-86257770.0067F72A@ni.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

On 7/30/2010 2: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?

Try these wrappers:

http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps

They haven't been updated in a while, but they will probably give you a
good place to start:

===================================
This is 'java-wrappers' version 0.96

This directory contains a set of wrappers for the Windows versions of
the Java SDK programs.  The wrappers should let all Java-related Unix
scripts work with no modifications.

In this version, the scripts look for the Java installation in the
directory specified in the JAVA_HOME environment variable.  This may
eventually be done via an auto-generated config file.

The scripts have been tested with the Sun and IBM 1.4.2 JDKs and the
Sun and IBM 1.5.0 SDKs.
===================================

--
Chuck


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019