Mail Archives: cygwin/2003/01/04/11:14:09
Kevin,
Javac is not particularly special. It is a Windows-native program, and as
such requires absolute file and directory names be provided in Windows
format (forward slashes are OK, but drive letters are required and the
Cygwin notion of root is completely unknown to such programs). PATH-like
variables (specifically CLASSPATH) must be in Windows format (semicolon
separators).
Both of these conversions is handled by the "cygpath" utility. Learn about it.
I strongly suggest that if your development environment, either
individually or as a group, is or is at all likely to become cross-platform
(betwen Windows and any kind of Unix), that you adopt a Unix-centered set
of build scripts and then create cover scripts that encapsulate the
operations that bridge the gap between the POSIX / Unix world of Cygwin and
the underlying native Sun Java SDK tools. Do so in a way that allows those
translations to be easily switched off, replaced or made null when not
needed (when you're working on an actual Unix system).
I do lots of Java under Windows with Cygwin and have for quite a while.
Feel free to come back with further questions.
Randall Schulz
At 03:52 2003-01-04, Kevin Cheng wrote:
>Ok, I've searched for articles on getting a java
>compiler working on cygwin. I got very vague info.
>
>Can someone please give me the newbie quick setup on
>setting up a java compiler to work on cygwin.
>
>I've got the java JDK 1.4.1 from java.sun.com. Now
>what do I do?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -