commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulo Roberto Massa Cereda <>
Subject Re: [lang] SystemUtils and Cygwin
Date Fri, 02 Jan 2015 08:54:02 GMT
Hello, Jörg!

Ah, thank you very much for the explanation. I now understand how a 
process works under Cygwin (to be honest, I was suspecting it was just a 
compatibility layer on top of a Windows runtime).

Now I'm almost a 100% sure the problem relies solely on my end. :) But 
now I know how to solve it. :)



On 01-01-2015 21:12, Jörg Schaible wrote:
> Hi Paulo,
> Paulo Roberto Massa Cereda wrote:
>> Dear friends,
>> I have to execute a certain system command according to the underlying
>> operating system; so far, SystemUtils works like a charm. But now I'm
>> facing a quite peculiar situation: I'd need to run a different code if
>> my Java application is being invoked from a Cygwin session.
>> I do not have a Windows machine (that's good!) so I cannot test how
>> things go (that's bad!). Do you guys know if it's possible to find out
>> if my code is running with Cygwin?
>> Any help is greatly appreciated. :)
> What do you try to accomplish? Please understand, that all the Cygwin stuff
> works only for applications compiled for Cygwin. Unless you don't have a JVM
> compiled for the Cygwin core, every JVM is a native Windows application
> which knowns nothing about Cygwin's Posix compatibility layer. Cygwin itself
> forces therefore the launch of the Java runtime with an environment adjusted
> for a pure Windows process.
>> All the best and a happy new year!
> Same to you.
> Cheers,
> Jörg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message