From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10857 invoked by alias); 11 Feb 2002 19:06:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 10700 invoked from network); 11 Feb 2002 19:06:37 -0000 Received: from unknown (HELO antiochus-fe0.ultra.net) (146.115.8.188) by sources.redhat.com with SMTP; 11 Feb 2002 19:06:37 -0000 Received: from enterprise-e.Starfleet.com (209-122-235-253.s2444.apx2.sbo.ma.dialup.rcn.com [209.122.235.253]) by antiochus-fe0.ultra.net (8.8.8/ult/n20340/mtc.v2) with ESMTP id OAA16217; Mon, 11 Feb 2002 14:06:34 -0500 (EST) Message-Id: <4.3.1.2.20020211135927.022250f8@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 11 Feb 2002 11:06:00 -0000 To: wally liau , cygwin@cygwin.com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: HELP: java path and classpath question In-Reply-To: <20020211184547.34194.qmail@web13403.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-02/txt/msg00546.txt.bz2 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/