cygwin programming [closed]
how do you compile java progrmas in cygwin?
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?
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/.
The same way as you would using a "normal" Windows shell.
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.
精彩评论