Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:28 Go to next message
Dominik Hirt is currently offline Dominik HirtFriend
Messages: 2
Registered: July 2009
Junior Member
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 10:12 Go to previous message
daniel kroeni is currently offline daniel kroeniFriend
Messages: 19
Registered: July 2009
Junior Member
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 08:39]

Report message to a moderator

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


Current Time: Mon Dec 30 16:26:29 GMT 2024

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

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

Back to the top