how do you compile java progrmas in cygwin?
+1
A:
With javac
, as normal - alternatively using something like Ant which works under cygwin, with some caveats.
The fact that you're asking the question suggests you've had problems - could you explain what you've tried and what went wrong?
Jon Skeet
2010-01-05 07:53:00
A:
Maven works also right out of the box. Cygwin & mintty combo rocks compared to windows cmd.
When running java-programs from cygwin you should remember that java-command is in windows, so it requires windows paths to jars. More info: http://www.inonit.com/cygwin/faq/.
Ahe
2010-01-05 08:14:12
A:
You can compile individual class files with the javac
command. If you have an existing project, it likely has a build.xml
, pom.xml
, or Makefile
, in which case you need to run ant
, mvn
, or make
respectively.
brianegge
2010-01-06 02:49:34