Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » cant run Ant with jUnit without external jar
cant run Ant with jUnit without external jar [message #238539] Tue, 04 May 2004 17:24 Go to next message
No real name is currently offline No real nameFriend
Messages: 17
Registered: July 2009
Junior Member
Using M3.0. Junit works fine inside of Eclipse, and Ant works fine if I add
an external junit jar to the classpath.

If I don't however, running my build script in debug mode shows the output
below.

Any help appreciated,
- Eric
Could not load a dependent class (junit/framework/TestListener) for type
junit

Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image

Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec

Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp

Could not load a dependent class (org/apache/commons/net/SocketClient) for
type rexec

Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion

Could not load a dependent class (com/starbase/starteam/Item) for type
stlist

Could not load a dependent class (org/apache/commons/net/SocketClient) for
type telnet

Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type
ftp

Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend

Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin

Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
Re: cant run Ant with jUnit without external jar [message #238544 is a reply to message #238539] Tue, 04 May 2004 17:32 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Ant has a different classpath than Eclipse.
As well you can run Ant in a separate VM than Eclipse.
To use JUnit with Ant you need to add the junit jar to the Ant runtime
classpath.

HTH
Darins

"Eric" <eric.fingerhut@verizon.net> wrote in message
news:c78j7j$lj5$1@eclipse.org...
> Using M3.0. Junit works fine inside of Eclipse, and Ant works fine if I
add
> an external junit jar to the classpath.
>
> If I don't however, running my build script in debug mode shows the output
> below.
>
> Any help appreciated,
> - Eric
> Could not load a dependent class (junit/framework/TestListener) for type
> junit
>
> Could not load a dependent class
> (com/sun/media/jai/codec/FileSeekableStream) for type image
>
> Could not load a dependent class (com/jcraft/jsch/UserInfo) for type
sshexec
>
> Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
>
> Could not load a dependent class (org/apache/commons/net/SocketClient) for
> type rexec
>
> Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion)
for
> type cvsversion
>
> Could not load a dependent class (com/starbase/starteam/Item) for type
> stlist
>
> Could not load a dependent class (org/apache/commons/net/SocketClient) for
> type telnet
>
> Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type
> ftp
>
> Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
>
> Could not load a dependent class (com/starbase/starteam/Item) for type
> stcheckin
>
> Could not load a dependent class (com/starbase/starteam/Item) for type
> stcheckout
>
>
Previous Topic:plugin_xx.properties in nl1.jar
Next Topic:Re: Anyone ever successfully used org.eclipse.ui.IStartup ?
Goto Forum:
  


Current Time: Sat Apr 20 03:43:01 GMT 2024

Powered by FUDForum. Page generated in 0.02491 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top