Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse 3.1.2 does not save JUnit 4.1 preference
Eclipse 3.1.2 does not save JUnit 4.1 preference [message #160307] Tue, 11 July 2006 15:36 Go to next message
Eclipse UserFriend
Originally posted by: henryc.nortel.com

I am successfully using JUnit4.1 with Eclipse 3.1.2 with the following
annoyance: Each time I start Eclipse, I need to set the JUnit preference to
the JUnit 4.1 installation path.

eg:
Window-Preferences-Java-Build Path-Classpath Variables:
from JUNIT_HOME d:/Program Files/eclipse/plugins/org.junit_3.8.1
to JUNIT_HOME D:/JUnit/junit4.1

It seems that the preference is not being saved at Eclipse shutdown. Any
help is greatly appreciated.

Thanks,
Henry
Re: Eclipse 3.1.2 does not save JUnit 4.1 preference [message #161204 is a reply to message #160307] Mon, 17 July 2006 09:43 Go to previous message
Markus KellerFriend
Messages: 294
Registered: July 2009
Senior Member
Sorry, that's the way the JUnit classpath variables work; they are
initialized on startup and are not supposed to be changed by the user.

Workarounds:

(A) Update to Eclipse 3.2, which provides a built-in JUnit4 classpath
container (Project Properties > Javav Build Path > Libraries > Add
Library...).

(B) Define your own classpath variable (e.g. JUNIT4_HOME) and use that
one in your test projects.

(C) Add the JUnit4 jar directly on your classpath (or put it into its
own project and make your test projects depend on it).

HTH,
Markus


On 2006-07-11 17:36, Henry Charlton wrote:
> I am successfully using JUnit4.1 with Eclipse 3.1.2 with the following
> annoyance: Each time I start Eclipse, I need to set the JUnit preference to
> the JUnit 4.1 installation path.
>
> eg:
> Window-Preferences-Java-Build Path-Classpath Variables:
> from JUNIT_HOME d:/Program Files/eclipse/plugins/org.junit_3.8.1
> to JUNIT_HOME D:/JUnit/junit4.1
>
> It seems that the preference is not being saved at Eclipse shutdown. Any
> help is greatly appreciated.
>
> Thanks,
> Henry
>
>
Previous Topic:Font Sizes in Eclipse
Next Topic:eclipse 3.2 much heavier than 3.1.2?
Goto Forum:
  


Current Time: Fri Apr 26 15:36:51 GMT 2024

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

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

Back to the top