Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Run configuration don't contain own classpath container entries
Run configuration don't contain own classpath container entries [message #250523] Wed, 09 January 2008 08:28 Go to next message
Eclipse UserFriend
Hi,

I use my own classpath container for my projects. Compiling of such
projects works perfect. The project classpath setting contain my
classplath container and all entries from that container are used for
compiling the project. If I write a JUnit testcase for some class within
such a project and try to run it by the JUnit plugin, then a
NoClassDefFoundError occur:
java.lang.NoClassDefFoundError: org/easymock/classextension/EasyMock

If I take a look at the Run configuration / classpath settings, there is a
entry under 'User Entries' / MyProject (default classpath) /
MyClasspathConatiner. So it seems, the container itself is used.
Furthermore all classpath entries within that classpath container are set
as exported
-> JavaCore.newLibraryEntry(lib, sourceAttachment, null, true);

The container itself is exported too:
-> JavaCore.newContainerEntry(MyClasspathContainer.ID, true);

But the classpath entries of the Run settings doesn't contain any of the
container entries !

What's wrong ?
Re: Run configuration don't contain own classpath container entries [message #541943 is a reply to message #250523] Wed, 23 June 2010 06:12 Go to previous message
Eclipse UserFriend
Have you found a solution to this problem? I have exactly the same issue here: Compilation works like a charm but JUnit fails to find classes.

<edit>Changing the build path order solved my problem.</edit>

[Updated on: Thu, 01 July 2010 04:39] by Moderator

Previous Topic:Having trouble executing queries on database
Next Topic:Support For Native Language
Goto Forum:
  


Current Time: Fri Apr 25 21:44:36 EDT 2025

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

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

Back to the top