| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | "Gunnar Norling" <gunnar AT lokomo DOT com> |
| To: | "'Nandika Mirihana'" <Nandika AT eRunway DOT com>, <cygwin AT cygwin DOT com> |
| Subject: | RE: about java |
| Date: | Fri, 17 Aug 2001 14:34:25 +0200 |
| Message-ID: | <002801c12718$f45082e0$1901a8c0@norling> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) |
| In-Reply-To: | <DF0998039BBFD41181C50002B30A0DF1F87A93@ENETSLMAILI> |
| 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 <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |