This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I tried to invoke the ftp ant task through a target I created by double clicking on the target name from the Explorer/Filesystems window. It did not execute, and the error message suggests the necessary library was not included in the ant distribution with NetBeans 3.5. <ftp server="${ftp.server}" userid="${ftp.user}" password="${ftp.pw}" remoteDir="${ftp.remoteDir}"> <fileset dir="${tmp.dir}"> <include name="${cvs.filename}${DSTAMP}.zip"/> </fileset> </ftp> java.lang.NoClassDefFoundError: com/oroinc/net/ftp/FTPClient at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:917) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:331) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118) BUILD FAILED
I guess, you forgot to add corresponding libraries (commons-net-1.1.0.jar, NetComponents.jar) to the ant classpath. You can add them through the 'Additional classpath' property in the Ant settings (Options dialog). Please, give me know if it helps you.
Where is this 'additional classpath' property? Best I could figure out was to modify Options/Building/Ant Settings/Properties, but I've not got it working yet. I currently have commons-net-1.1.0.jar on my classpath, which command line Ant is able to find. Could NetBeans be tweaked to look there too? Mark McKay
Sorry, it was my mistake. I thought you have NetBeans 3.6 Beta 1. 'Aditional classpath' property isn't in the NetBeans 3.5. For NetBeans 3.5 the proper place for jars and libraries is modules/patches/org-apache-tools-ant-module (look at ide help 'Ant classpath and custom task').
See http://ant.netbeans.org/faq.html
closed