This is the mail archive of the
mailing list for the Cygwin project.
Re: Making Unix like paths work when using java program from Cygwin
- From: Filipp Gunbin <fgunbin at fastmail dot fm>
- To: himoundary <himanshu2004 at gmail dot com>, cygwin at cygwin dot com
- Date: Fri, 18 May 2012 13:55:53 +0400
- Subject: Re: Making Unix like paths work when using java program from Cygwin
- References: <email@example.com>
> Is there a way to get the equivalent of the "native" javac and java
> programs one would find on a typical Linux workstation. If not, can I
> accomplish what I want using the gcc java compiler gjc?
Even if you compile with gjc, you still need the virtual machine, which
is as far as I know not available.
But you have another option.
You can make your Java program OS-independent (as it should be) and run
it from the shell script in Cygwin using a usual Java VM for Windows.
For that, you need to fix paths in environment variables appropriately
(unix->windows) using the cygpath utility before starting java.
You can see examples of this in startup scripts of some well-established
Java projects like Tomcat, ActiveMQ or JBoss.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple