Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

I can't run example from JEE5tutorial - books

843833Jul 11 2007
OS- Linux
NetBeans 5.5.1 ( with ant 1.7 )
ant 1.6

I tried run:
ant 1.6
[root@zet books(0)]# ant create-tables
Buildfile: build.xml

BUILD FAILED
/home/marcin/3ROK/1SEM/java1/javaeetutorial5/examples/web/books/build.xml:49: The following error occurred while executing this line:
/home/marcin/3ROK/1SEM/java1/javaeetutorial5/examples/bp-project/main.xml:20: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

Total time: 1 second
on ant 1.7
[root@zet books(0)]# /usr/local/netbeans-5.5.1/ide7/ant/bin/ant create-tables
Unknown argument: -cp
ant [options] [target [target2 [target3] ...]]
Options:
  -help, -h              print this message
  -projecthelp, -p       print project help information
  -version               print the version information and exit
  -diagnostics           print information that might be helpful to
                         diagnose or report problems.
  -quiet, -q             be extra quiet
  -verbose, -v           be extra verbose
  -debug, -d             print debugging information
  -emacs, -e             produce logging information without adornments
  -lib <path>            specifies a path to search for jars and classes
  -logfile <file>        use given file for log
    -l     <file>                ''
  -logger <classname>    the class which is to perform logging
  -listener <classname>  add an instance of class as a project listener
  -noinput               do not allow interactive input
  -buildfile <file>      use given buildfile
    -file    <file>              ''
    -f       <file>              ''
  -D<property>=<value>   use value for given property
  -keep-going, -k        execute all targets that do not depend
                         on failed target(s)
  -propertyfile <name>   load all properties from file with -D
                         properties taking precedence
  -inputhandler <class>  the class which will handle input requests
  -find <file>           (s)earch for buildfile towards the root of
    -s  <file>           the filesystem and use it
  -nice  number          A niceness value for the main thread:
                         1 (lowest) to 10 (highest); 5 is the default

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 8 2007
Added on Jul 11 2007
0 comments
115 views