Hi all,
  As the subject, I did not set the ANT_HOME as systtem variable and did
not put lib to classpath.
  I copied all the ant lib and bin to my
working folder "C:\ying1\project\build",  so I can seperate my project
with the system env. But I got error like that I did not use java commad
correctly.

C:\ying1\project\build>"c:\jdk1.3\bin\java" -classpath
"c:\jdk1.3\lib\tools.jar;C:\ying1\project\build\lib\optional.jar;
C:\ying1\project\build\lib\jaxp.jar;C:\ying1\project\build\lib\crimson.jar;
C:\ying1\project\build\lib\ant.jar;C:\jdk1.3\jre\lib;
C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip"
-Dant.home="C:\ying1\project\build\"  org.apache.tools.ant.Main build.xml
Usage: java [-options] class [args...]
           (to execute a class)
   or  java -jar [-options] jarfile [args...]
           (to execute a jar file)

where options include:
    -hotspot      to select the "hotspot" VM
    -server       to select the "server" VM
    -classic      to select the "classic" VM
                  If present, the option to select the VM must be first.
                  The default VM is -hotspot.

    -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

Any help is really appreciated!


Ying Wang



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to