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 <jer...@bopp.net>                                     
                                                       
                                                                                
                                                       
  To:         cygwin@cygwin.com                                                 
                                                       
                                                                                
                                                       
  Date:       07/30/2010 01:59 PM                                               
                                                       
                                                                                
                                                       
  Subject:    Re: Question on Java and Cygwin                                   
                                                       
                                                                                
                                                       
  Sent by:    cygwin-ow...@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





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

Reply via email to