4 ms·
What if you start a java process in cygwin? Path names mess me up.
by snnn 11y ago
What if you start a java process in cygwin? Path names mess me up.
- yareally 11y agoNot sure about Java, but Scala works fine for me in cygwin after doing this[1][2]. I'd have to have a more detailed example (that I can reproduce myself) of what gets messed up though if it's something beyond that, since I can't remember anymore exactly what else I had to do offhand. [1] http://stackoverflow.com/questions/17124689/i-really-would-like-sbt-and-its-console-to-work-under-cygwin-any-way-you-think-i http://stackoverflow.com/questions/17124689/i-really-would-l... [2] http://stackoverflow.com/questions/4468967/two-problems-with-sbt-in-cygwin-vista http://stackoverflow.com/questions/4468967/two-problems-with...
- joosters 11y agoCygwin does not alter the behaviour of existing programs. It is a DLL that can be compiled into new programs to provide lots of POSIX/Linux compatibility. It also comes shipped with lots of pre-compiled Linux binaries of common tools. If you run your pre-existing JRE, its behaviour won't change. If you run a JRE compiled with cygwin (I've no idea if they provide one or not) then it will have UNIX-style path support.
- yareally 11y agoDon't believe there is such a JRE. I mostly handle paths like I would normally on windows and they work ok on the JVM: "c:/whatever/another_dir/some.file" There's also cygpath to convert between Windows/Unix style paths: http://cygwin-lite.sourceforge.net/html/cygpath.html http://cygwin-lite.sourceforge.net/html/cygpath.html