Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ecipse 3.3 -> 3.4 Junit Problems
Ecipse 3.3 -> 3.4 Junit Problems [message #255049] Tue, 15 July 2008 16:42 Go to next message
Eclipse UserFriend
I recently downloaded Ganymede JEE distro from the eclipse website. After
installing and creating a brand-new workspace, i imported a project from
my 3.3 workspace.

Once i did this, i tried to run a JUnit (4.4) test, and it gave me a
java.lang.ClassNotFoundException. The class that wasn't found was the
JUnit test class! I tried several things which narrowed it down to this:

If i create a brand-new project within v3.4, JUnit works without a hitch.

If i import a project from a 3.3 workspace or (and this is important) if i
check-out a project from CVS that was developed under Eclipse 3.3, I
continue to get the error.

It seems that I can not run any JUnit 4.4 from any project that wasn't
created by Ganymede.

This is very serious issue as all of my old projects were developed under
3.3, and but none of my test cases will run in 3.4.

Has anyone else experienced this or has found a solution to it? Any help
is much appreciated. Thank you.
Re: Ecipse 3.3 -> 3.4 Junit Problems [message #255058 is a reply to message #255049] Tue, 15 July 2008 20:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Bryan wrote:
> I recently downloaded Ganymede JEE distro from the eclipse website.
> After installing and creating a brand-new workspace, i imported a
> project from my 3.3 workspace.
> Once i did this, i tried to run a JUnit (4.4) test, and it gave me a
> java.lang.ClassNotFoundException. The class that wasn't found was the
> JUnit test class! I tried several things which narrowed it down to this:
>
> If i create a brand-new project within v3.4, JUnit works without a hitch.
> If i import a project from a 3.3 workspace or (and this is important) if
> i check-out a project from CVS that was developed under Eclipse 3.3, I
> continue to get the error.
>
> It seems that I can not run any JUnit 4.4 from any project that wasn't
> created by Ganymede.
> This is very serious issue as all of my old projects were developed
> under 3.3, and but none of my test cases will run in 3.4.
>
> Has anyone else experienced this or has found a solution to it? Any help
> is much appreciated. Thank you.
>
It sounds like the JUnit jar files aren't on your runtime classpath. I
haven't use the JUnit launch mechanism much, but I believe that there
should be a JUnit launch configuration to run your tests. See if you
can add the jar files to the Launch Config.
Re: Ecipse 3.3 -> 3.4 Junit Problems [message #255062 is a reply to message #255058] Tue, 15 July 2008 20:59 Go to previous messageGo to next message
Eclipse UserFriend
David Wegener wrote:

> It sounds like the JUnit jar files aren't on your runtime classpath. I
> haven't use the JUnit launch mechanism much, but I believe that there
> should be a JUnit launch configuration to run your tests. See if you
> can add the jar files to the Launch Config.


The JUnit jar files are on the runtime classpath. I had, in the same
workspace, the project created within Eclipse 3.3 and 3.4, their Run
configurations were identical as far as I could tell, as well as all of
their project meta-data files (.project, .classpath, .settings/).

The 3.4 project successfully ran the test methods, where the 3.3 imported
project did not.

-B
Re: Ecipse 3.3 -> 3.4 Junit Problems [message #255070 is a reply to message #255062] Wed, 16 July 2008 03:25 Go to previous messageGo to next message
Eclipse UserFriend
Bryan wrote:
> David Wegener wrote:
>
>> It sounds like the JUnit jar files aren't on your runtime classpath.
>> I haven't use the JUnit launch mechanism much, but I believe that
>> there should be a JUnit launch configuration to run your tests. See
>> if you can add the jar files to the Launch Config.
>
>
> The JUnit jar files are on the runtime classpath. I had, in the same
> workspace, the project created within Eclipse 3.3 and 3.4, their Run
> configurations were identical as far as I could tell, as well as all
> of their project meta-data files (.project, .classpath, .settings/).
>
> The 3.4 project successfully ran the test methods, where the 3.3
> imported project did not.
If you can reproduce this I suggest to file a bug report with steps to
reproduce.

Dani
>
> -B
>
Re: Ecipse 3.3 -> 3.4 Junit Problems [message #255083 is a reply to message #255070] Wed, 16 July 2008 09:59 Go to previous message
Eclipse UserFriend
Daniel Megert wrote:


>If you can reproduce this I suggest to file a bug report with steps to
>reproduce.

> Dani


The problem appears not to be Eclipse, but the m2eclipse plug-in.

-B
Previous Topic:How can I create a Java Project programatically when running textual Eclipse?
Next Topic:Question regarding copySubtree Method
Goto Forum:
  


Current Time: Sat May 10 01:55:48 EDT 2025

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

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

Back to the top