Idea 6.0.5 ignore additional classpath for Ant

If i launch an Ant task that uses a class from a library included in the
additional classpath from Idea 6.0.5 in the Messages pane I have the error
class NoClassDefFoundError:
"C:\dev\AuiEJB\build_AuiEJB.xml:627: Could not create type ftp due to java.lang.NoClassDefFoundError:
org/apache/commons/net/ftp/FTPClientConfig"

I tried to execute the same task with a previous version of Idea 6 and the
execution is OK.

Thank's,

Roberto


9 comments

Hello Roberto,

Dummy script:

]]>

works for me in 6.0.5. It fails, of course, as "could not login to server",
but there are no NoClassDefFoundError.
Additional classpath includes commons-net-1.4.1.jar.

If i launch an Ant task that uses a class from a library included in
the

additional classpath from Idea 6.0.5 in the Messages pane I have the
error

class NoClassDefFoundError:

"C:\dev\AuiEJB\build_AuiEJB.xml:627: Could not create type ftp due to
java.lang.NoClassDefFoundError:

org/apache/commons/net/ftp/FTPClientConfig"

I tried to execute the same task with a previous version of Idea 6 and
the execution is OK.

Thank's,

Roberto

Alexander.


0

I have had some issues getting our Ant build scripts to run through Intellij. I think it is more than likely issues with classpath because in our Windows env we all have a classpath variable setup so we run the Ant scripts through the command line. However when I run it in through Intellij, it seems to have issues...I tried this a while back and it messed up my env so I am loathe to try it again.

Anyway on the good side of the 6.0.5 release it definitely feels a bit faster and is definitely not using up the 256 M of heap space which is great. That could also be attributed to the Java 6 Update 1 that I am running the IDE on. I have left the IDE running for a few days and memory usage in Task Manager is about 400 MB with heap space hovering at 180 out of 256. THe project is quite large as well. Looking forward to the next release for 6.0.6 if there is gonna be one (and I hope there is one!)

0

Hello Alexander,

in my ant build.xml I have
]]>
<include name="*/.jar"/>
</fileset>
</ftp>
and in my additional classpath there is commons-net-1.2.2.jar.
The task execution is completed without error if I open the project in Idea
version 6.0.4, but if I open the same project in Idea 6.0.5 the task execution
give me the error NoClassDefFoundError. The only difference that I see is
that Idea 6.0.5 use Ant 1.7 instead of 1.6.5.

Thank's,

Roberto

Hello Roberto,

Dummy script:

<project name="ftp-test" default="main">
<target name="main">
<ftp server="ftp.ru" remotedir="/pub" userid="dummy"
password="yogurt"/>
</target>
</project>
works for me in 6.0.5. It fails, of course, as "could not login to
server",
but there are no NoClassDefFoundError.
Additional classpath includes commons-net-1.4.1.jar.

>> If i launch an Ant task that uses a class from a library included in
>> the
>>
>> additional classpath from Idea 6.0.5 in the Messages pane I have the
>> error
>>
>> class NoClassDefFoundError:
>>
>> "C:\dev\AuiEJB\build_AuiEJB.xml:627: Could not create type ftp due to
>> java.lang.NoClassDefFoundError:
>>
>> org/apache/commons/net/ftp/FTPClientConfig"
>>
>> I tried to execute the same task with a previous version of Idea 6
>> and the execution is OK.
>>
>> Thank's,
>>
>> Roberto
>>

Alexander.



0

Hello Roberto,

Hm... Works for me (again, with dummy properties values). I also use bundled
ant 1.7.

You can check the command line which IDEA starts the script with. In Message
pane set output mode to text (there is a toggle button). The first line is
the executed command. In my case it is:

"C:\Program Files\Java\jdk1.5.0_08\bin\java" -Xmx128m "-Dant.home=C:\JetBrains\IDEA
6.0.x\6180\lib\ant" -Dfile.encoding=UTF-8 -classpath "C:\uf\Alexander.Chernikov\prods\ants\commons-net-1.4.1\commons-net-1.4.1.jar;
... other libs ... " com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2
-inputhandler com.intellij.rt.ant.execution.IdeaInputHandler -buildfile C:\uf\Alexander.Chernikov\work\iprojs-6.0\garb12-ant\ants2\ftp-test.xml
targetName

Commons-net is in classpath.

Hello Alexander,

in my ant build.xml I have
<ftp
server="${server.deploy.integration}"
port="${ftp.port.integration}"
userid="${ftp.user.integration}"
password="${ftp.password.integration}"

remotedir="${root.remotedir.integration}/bea/${domains.remotedir.integ
ration}/${domain.integration}/upload/lib"
binary="yes" depends="no" verbose="yes">
<fileset dir="${BartEJB.dist.dir}/lib">
<include name="*/.jar"/>
</fileset>
</ftp>
and in my additional classpath there is commons-net-1.2.2.jar.
The task execution is completed without error if I open the project in
Idea version 6.0.4, but if I open the same project in Idea 6.0.5 the
task execution give me the error NoClassDefFoundError. The only
difference that I see is that Idea 6.0.5 use Ant 1.7 instead of 1.6.5.

Thank's,

Roberto


Alexander.




0

Hello Alexander,

mine command line is

C:\bea\jdk142_05\bin\java -Xmx128m "-Dant.home=C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant" -Dfile.encoding=windows-1252
-classpath "C:\java\lib\beaWL81\lib\weblogic.jar;C:\java\lib\commons-net-1.2.2\commons-net-1.2.2.jar;
... other libs ... "
com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2
-inputhandler com.intellij.rt.ant.execution.IdeaInputHandler
-Droot.dir.viscoAntSettings=c:\dev\ViscoAntSettings -Duser_ant.properties=ant_roby.properties

-buildfile C:\dev\AuiEJB\build_AuiEJB.xml deploy.test

the Commons-net is in classpath, I have also tested with jdk 1.5.10 and the
result is the same NoClassDefFoundError.

Thank's,

Roberto

Hello Roberto,

Hm... Works for me (again, with dummy properties values). I also use
bundled ant 1.7.

You can check the command line which IDEA starts the script with. In
Message pane set output mode to text (there is a toggle button). The
first line is the executed command. In my case it is:

"C:\Program Files\Java\jdk1.5.0_08\bin\java" -Xmx128m
"-Dant.home=C:\JetBrains\IDEA 6.0.x\6180\lib\ant"
-Dfile.encoding=UTF-8 -classpath
"C:\uf\Alexander.Chernikov\prods\ants\commons-net-1.4.1\commons-net-1.
4.1.jar; ... other libs ... " com.intellij.rt.ant.execution.AntMain2
-logger com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler
com.intellij.rt.ant.execution.IdeaInputHandler -buildfile
C:\uf\Alexander.Chernikov\work\iprojs-6.0\garb12-ant\ants2\ftp-test.xm
l targetName

Commons-net is in classpath.

>> Hello Alexander,
>>
>> in my ant build.xml I have
>> > server="${server.deploy.integration}" >> port="${ftp.port.integration}" >> userid="${ftp.user.integration}" >> password="${ftp.password.integration}" >> remotedir="${root.remotedir.integration}/bea/${domains.remotedir.inte >> g >> ration}/${domain.integration}/upload/lib" >> binary="yes" depends="no" verbose="yes"> >> >>]]> <include name="*/.jar"/>
>> </fileset>
>> </ftp>
>> and in my additional classpath there is commons-net-1.2.2.jar.
>> The task execution is completed without error if I open the project
>> in
>> Idea version 6.0.4, but if I open the same project in Idea 6.0.5 the
>> task execution give me the error NoClassDefFoundError. The only
>> difference that I see is that Idea 6.0.5 use Ant 1.7 instead of
>> 1.6.5.
>> Thank's,
>>
>> Roberto
>>

Alexander.



0

Hello Roberto,

This maybe a problem of class loader. In the classpath we have 2 jars with
FTP.class: commons-net-* added by user and ant-commons-net.jar from IDEA
installation. The first one contains class FTPClientConfig, the second does
not. Class loader may search for FTPClientConfig only in the second jar after
finding FTP.class there.

Could you please post here the complete value of -classpath you use when
you run from IDEA, and the value you use when you run externally (if it's
different). Thanks.

Hello Alexander,

mine command line is

C:\bea\jdk142_05\bin\java -Xmx128m
"-Dant.home=C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant" -Dfile.encoding=windows-1252
-classpath
"C:\java\lib\beaWL81\lib\weblogic.jar;C:\java\lib\commons-net-1.2.2\co
mmons-net-1.2.2.jar;
... other libs ... "
com.intellij.rt.ant.execution.AntMain2 -logger
com.intellij.rt.ant.execution.IdeaAntLogger2
-inputhandler com.intellij.rt.ant.execution.IdeaInputHandler
-Droot.dir.viscoAntSettings=c:\dev\ViscoAntSettings
-Duser_ant.properties=ant_roby.properties

-buildfile C:\dev\AuiEJB\build_AuiEJB.xml deploy.test

the Commons-net is in classpath, I have also tested with jdk 1.5.10
and the result is the same NoClassDefFoundError.

Thank's,

Roberto

>> Hello Roberto,
>>
>> Hm... Works for me (again, with dummy properties values). I also use
>> bundled ant 1.7.
>>
>> You can check the command line which IDEA starts the script with. In
>> Message pane set output mode to text (there is a toggle button). The
>> first line is the executed command. In my case it is:
>>
>> "C:\Program Files\Java\jdk1.5.0_08\bin\java" -Xmx128m
>> "-Dant.home=C:\JetBrains\IDEA 6.0.x\6180\lib\ant"
>> -Dfile.encoding=UTF-8 -classpath
>> "C:\uf\Alexander.Chernikov\prods\ants\commons-net-1.4.1\commons-net-1
>> . 4.1.jar; ... other libs ... "
>> com.intellij.rt.ant.execution.AntMain2 -logger
>> com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler
>> com.intellij.rt.ant.execution.IdeaInputHandler -buildfile
>> C:\uf\Alexander.Chernikov\work\iprojs-6.0\garb12-ant\ants2\ftp-test.x
>> m l targetName
>>
>> Commons-net is in classpath.
>>
>>> Hello Alexander,
>>>
>>> in my ant build.xml I have
>>> >> server="${server.deploy.integration}" >>> port="${ftp.port.integration}" >>> userid="${ftp.user.integration}" >>> password="${ftp.password.integration}" >>> remotedir="${root.remotedir.integration}/bea/${domains.remotedir.int >>> e >>> g >>> ration}/${domain.integration}/upload/lib" >>> binary="yes" depends="no" verbose="yes"> >>> >>>]]> <include name="*/.jar"/>
>>> </fileset>
>>> </ftp>
>>> and in my additional classpath there is commons-net-1.2.2.jar.
>>> The task execution is completed without error if I open the project
>>> in
>>> Idea version 6.0.4, but if I open the same project in Idea 6.0.5 the
>>> task execution give me the error NoClassDefFoundError. The only
>>> difference that I see is that Idea 6.0.5 use Ant 1.7 instead of
>>> 1.6.5.
>>> Thank's,
>>> Roberto
>>>
>> Alexander.
>>
Alexander.


0

Hello Alexander,

this is the complete command that is generated when ant run is in Idea 6.0.5
with NoClassDefFoundError

C:\bea\jdk142_05\bin\java -Xmx128m "-Dant.home=C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant" -Dfile.encoding=windows-1252
-classpath "C:\java\lib\beaWL81\lib\weblogic.jar;C:\java\lib\commons-net-1.2.2\commons-net-1.2.2.jar;C:\java\lib\junit3.8.1\lib\junit.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-antlr.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-bcel.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-bsf.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-log4j.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-oro.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-regexp.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-resolver.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-commons-logging.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-commons-net.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-jai.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-javamail.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-jdepend.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-jmf.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-jsch.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-junit.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-launcher.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-netrexx.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-nodeps.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-starteam.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-stylebook.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-swing.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-testutil.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-trax.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-weblogic.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\xercesImpl.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\xml-apis.jar;C:\bea\jdk142_05\lib\tools.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\idea_rt.jar"
com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2
-inputhandler com.intellij.rt.ant.execution.IdeaInputHandler
-Droot.dir.viscoAntSettings=c:\dev\ViscoAntSettings -Duser_ant.properties=ant_roby.properties
-buildfile C:\dev\AuiEJB\build_AuiEJB.xml deploy.test

and this is the complete command that is generated when ant run is in Idea
6.0.4, all OK

C:\bea\jdk142_05\bin\java -Xmx128m "-Dant.home=C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant" -Dfile.encoding=windows-1252
-classpath "C:\java\lib\beaWL81\lib\weblogic.jar;C:\java\lib\commons-net-1.2.2\commons-net-1.2.2.jar;C:\java\lib\junit3.8.1\lib\junit.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-antlr.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-bcel.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-bsf.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-log4j.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-oro.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-apache-regexp.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-apache-resolver.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-commons-logging.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-commons-net.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-icontract.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-jai.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-javamail.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-jdepend.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-jmf.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-jsch.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-junit.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-launcher.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-netrexx.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-nodeps.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-starteam.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-stylebook.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-swing.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-testutil.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-trax.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-vaj.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-weblogic.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-xalan1.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\ant-xslp.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant.jar;C:\Programmi\JetBrains\IntelliJ
IDEA 6.0\lib\ant\lib\xercesImpl.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\xml-apis.jar;C:\bea\jdk142_05\lib\tools.jar;
C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\idea_rt.jar"
com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2
-inputhandler com.intellij.rt.ant.execution.IdeaInputHandler
-Droot.dir.viscoAntSettings=c:\dev\ViscoAntSettings -Duser_ant.properties=ant_roby.properties
-buildfile C:\dev\AuiEJB\build_AuiEJB.xml deploy.test

the classpath is similar but in 6.0.4 there are some libraries not present
in 6.0.5:
- C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-icontract.jar;
- C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-vaj.jar;
- C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-xalan1.jar;
- C:\Programmi\JetBrains\IntelliJ IDEA 6.0\lib\ant\lib\ant-xslp.jar;

We do not need to execute the ant file externally because with Idea 6.0.4
all is OK

Thanks,
Roberto

Hello Roberto,

This maybe a problem of class loader. In the classpath we have 2 jars
with FTP.class: commons-net-* added by user and ant-commons-net.jar
from IDEA installation. The first one contains class FTPClientConfig,
the second does not. Class loader may search for FTPClientConfig only
in the second jar after finding FTP.class there.

Could you please post here the complete value of -classpath you use
when you run from IDEA, and the value you use when you run externally
(if it's different). Thanks.

>> Hello Alexander,
>>
>> mine command line is
>>
>> C:\bea\jdk142_05\bin\java -Xmx128m
>> "-Dant.home=C:\Programmi\JetBrains\IntelliJ
>> IDEA 6.0\lib\ant" -Dfile.encoding=windows-1252
>> -classpath
>> "C:\java\lib\beaWL81\lib\weblogic.jar;C:\java\lib\commons-net-1.2.2\c
>> o
>> mmons-net-1.2.2.jar;
>> ... other libs ... "
>> com.intellij.rt.ant.execution.AntMain2 -logger
>> com.intellij.rt.ant.execution.IdeaAntLogger2
>> -inputhandler com.intellij.rt.ant.execution.IdeaInputHandler
>> -Droot.dir.viscoAntSettings=c:\dev\ViscoAntSettings
>> -Duser_ant.properties=ant_roby.properties
>> -buildfile C:\dev\AuiEJB\build_AuiEJB.xml deploy.test
>>
>> the Commons-net is in classpath, I have also tested with jdk 1.5.10
>> and the result is the same NoClassDefFoundError.
>>
>> Thank's,
>>
>> Roberto
>>
>>> Hello Roberto,
>>>
>>> Hm... Works for me (again, with dummy properties values). I also use
>>> bundled ant 1.7.
>>>
>>> You can check the command line which IDEA starts the script with. In
>>> Message pane set output mode to text (there is a toggle button). The
>>> first line is the executed command. In my case it is:
>>>
>>> "C:\Program Files\Java\jdk1.5.0_08\bin\java" -Xmx128m
>>> "-Dant.home=C:\JetBrains\IDEA 6.0.x\6180\lib\ant"
>>> -Dfile.encoding=UTF-8 -classpath
>>> "C:\uf\Alexander.Chernikov\prods\ants\commons-net-1.4.1\commons-net-
>>> 1 . 4.1.jar; ... other libs ... "
>>> com.intellij.rt.ant.execution.AntMain2 -logger
>>> com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler
>>> com.intellij.rt.ant.execution.IdeaInputHandler -buildfile
>>> C:\uf\Alexander.Chernikov\work\iprojs-6.0\garb12-ant\ants2\ftp-test.
>>> x m l targetName
>>>
>>> Commons-net is in classpath.
>>>
>>>> Hello Alexander,
>>>>
>>>> in my ant build.xml I have
>>>> >>> server="${server.deploy.integration}" >>>> port="${ftp.port.integration}" >>>> userid="${ftp.user.integration}" >>>> password="${ftp.password.integration}" >>>> remotedir="${root.remotedir.integration}/bea/${domains.remotedir.in >>>> t >>>> e >>>> g >>>> ration}/${domain.integration}/upload/lib" >>>> binary="yes" depends="no" verbose="yes"> >>>> >>>>]]> <include name="*/.jar"/>
>>>> </fileset>
>>>> </ftp>
>>>> and in my additional classpath there is commons-net-1.2.2.jar.
>>>> The task execution is completed without error if I open the project
>>>> in
>>>> Idea version 6.0.4, but if I open the same project in Idea 6.0.5
>>>> the
>>>> task execution give me the error NoClassDefFoundError. The only
>>>> difference that I see is that Idea 6.0.5 use Ant 1.7 instead of
>>>> 1.6.5.
>>>> Thank's,
>>>> Roberto
>>> Alexander.
>>>

Alexander.



0

Hello Roberto,

It seems I've got it. As I can see, there is no bug in IDEA. Ant FTP task
depends on commons-net (see the note in http://ant.apache.org/manual/OptionalTasks/ftp.html).
Common-net-1.2.2 does not support Ant 1.7.0. It contains no necessary classes.
Replacing 1.2.2 with commons-net-1.4.1 avoids the error.

Hello Alexander,


Alexander.


0

Hello Alexander,

You are right, replacing commons-net-1.2.2 with 1.4.1 solve the problem and
clearly this is not an Idea bug.

Thanks a lot for your support,

Roberto

Hello Roberto,

It seems I've got it. As I can see, there is no bug in IDEA. Ant FTP
task depends on commons-net (see the note in
http://ant.apache.org/manual/OptionalTasks/ftp.html). Common-net-1.2.2
does not support Ant 1.7.0. It contains no necessary classes.
Replacing 1.2.2 with commons-net-1.4.1 avoids the error.


Alexander.



0

Please sign in to leave a comment.