Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Upgrade from Eclipse 2.0 to 2.1 loses JUnit
Upgrade from Eclipse 2.0 to 2.1 loses JUnit [message #11603] Fri, 02 May 2003 03:08 Go to next message
Eclipse UserFriend
Originally posted by: robert.welbourn.com

I upgraded from Eclipse 2.0 to 2.1, but in the process I seem to have
broken anything that used JUnit. For example, the import declaration

import junit.framework.TestCase;

results in the error message "the import junit cannot be resolved"

Most likely this is some form of classpath problem. Can anyone point me
in the right direction to fix this?

Thanks,

Rob
Re: Upgrade from Eclipse 2.0 to 2.1 loses JUnit [message #11673 is a reply to message #11603] Fri, 02 May 2003 04:28 Go to previous messageGo to next message
leon webster is currently offline leon websterFriend
Messages: 15
Registered: July 2009
Junior Member
make sure you have the right junit jar in your project's classpath. With
version 2.1, you want the one in $eclipse/plugins/org.junit_3.8.1 where
$eclipse represents the eclipse installation directory. The version of
junit changed from 3.7 to 3.8.1, so your eclipse 2.0 projects are probably
looking for $eclipse/plugins/org.junit_3.7

Leon Webster
"Rob Welbourn" <robert@welbourn.com> wrote in message
news:b8snfl$hr$1@rogue.oti.com...
> I upgraded from Eclipse 2.0 to 2.1, but in the process I seem to have
> broken anything that used JUnit. For example, the import declaration
>
> import junit.framework.TestCase;
>
> results in the error message "the import junit cannot be resolved"
>
> Most likely this is some form of classpath problem. Can anyone point me
> in the right direction to fix this?
>
> Thanks,
>
> Rob
>
>
>
Re: Upgrade from Eclipse 2.0 to 2.1 loses JUnit [message #12332 is a reply to message #11673] Fri, 02 May 2003 14:50 Go to previous message
Eclipse UserFriend
Originally posted by: robert.welbourn.com

Leon,

Thanks - that did the trick.

Rob

Leon Webster wrote:

> make sure you have the right junit jar in your project's classpath. With
> version 2.1, you want the one in $eclipse/plugins/org.junit_3.8.1 where
> $eclipse represents the eclipse installation directory. The version of
> junit changed from 3.7 to 3.8.1, so your eclipse 2.0 projects are probably
> looking for $eclipse/plugins/org.junit_3.7
Previous Topic:How to disable project building after import
Next Topic:How JavaEditor example can extend CompilationUnitEditor
Goto Forum:
  


Current Time: Fri Nov 08 21:47:51 GMT 2024

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

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

Back to the top