about java
Gunnar Norling
gunnar@lokomo.com
Fri Aug 17 05:34:00 GMT 2001
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@sources.redhat.com
[ mailto:cygwin-owner@sources.redhat.com]On Behalf Of Nandika Mirihana
Sent: den 17 augusti 2001 12:50
To: 'cygwin@cygwin.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/
More information about the Cygwin
mailing list