Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Gunnar Norling" To: "'Nandika Mirihana'" , Subject: RE: about java Date: Fri, 17 Aug 2001 14:34:25 +0200 Message-ID: <002801c12718$f45082e0$1901a8c0@norling> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Nandika, Your problem is the semi-colon after $CLASSPATH. In cygwin (gnu) it separates commands, so the shell thinks you are running *two* commands. First it tries java -cp $CLASSPATH which gives the error message. Then the shell tries to execute com/XML which obviously does not exist. Try to surround the arguments to `java' within quotas like java -cp "$CLASSPATH;com/XML$*" ^ ^ | | +------------------------- This is the tricks. (Though im not sure I understand what you actually want to perform with this command (com/XML$* ???)) Hope it helps, /norling -----Original Message----- From: cygwin-owner AT sources DOT redhat DOT com [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Nandika Mirihana Sent: den 17 augusti 2001 12:50 To: 'cygwin AT cygwin DOT com' Subject: about java Hi when i am running java -cp $CLASSPATH;com/XML$* it gives the following error Usage: java [-options] class [args...] (to execute a class) or java -jar [-options] jarfile [args...] (to execute a jar file) where options include: -cp -classpath set search path for application classes and resources -D= set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -showversion print product version and continue -? -help print this help message -X print help on non-standard options bash: com/XML: No such file or directory but the file is there. I don't know why ? if know the reason pls help me -Nandika -- 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/ -- 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/