HELP: java path and classpath question

Larry Hall (RFK Partners, Inc) lhall@rfk.com
Mon Feb 11 11:06:00 GMT 2002


At 01:45 PM 2/11/2002, wally liau wrote:
>I am having a problem compiling generic java source
>file with following settings: 
>
>alias gjc='java -ms12m gjc.Main -bootclasspath
>$GJ_HOME/classes:/cygdrive/c/jdk1.3.1_01/jre/lib/rt.jar:/cygdrive/c/jdk1.3.1_01/jre/lib/i18n.jar'
>
>
>export JAVA_HOME=/cygdrive/c/jdk1.3.1_01
>export GJ_HOME=/cygdrive/c/Programs/gj
>
>The error messages show that cygwin can't find java
>class (eg, it can't find String class). However,
>compiling stardard java code using "javac" works fine.
>I guess there may be some problems with how to set up
>paths and hope someone out there could help me to fix
>it. Thanks a lot. 


Check the email archives for issues about Java and Cygwin paths.  The 
simple answer is that Java doesn't understand Cygwin paths unless you're
running a Cygwin version of Java (I doubt that's the case unless there is 
a Cygwin version out there that this list doesn't know about - a 
possibility I'll concede but unlikely).  You need to use Win32 paths with
Win32 Java.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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/



More information about the Cygwin mailing list