Community
Participate
Working Groups
I hope I selected the right component. Before I tell you the bug I have to mention that I used Eclipse 3.1 before. I have the problem that Eclipse don't seem to save the information after I have changed the JUNIT_HOME (and the JUNIT_SRC_HOME) variable to the new JUnit installation of JUnit 4.1. I changed this setting by clicking on the project with the right mouse button (in the package explorer view), selecting "Build Path->Configure Build Path...", clicking on the JUNIT_HOME variable and told Eclipse to "Edit..." it. After that I changed the "Variable..." and "Extension..." and leaved all dialog boxes with the "OK" button. Until I finish Eclipse this works fine. But the next time I started Eclipse again the variable are set to the old version with the wrong jar file, so that I have to make the above changes again. The combination of the folder and the including jar file is wrong!
I had the same problem and resolved it by adding a custom variable called JUNIT4_HOME. I also was using 3.1 with JUNIT3.8 prior to upgrading to Eclipse 3.2.
It is a known problem with classpath variables that they allow to be edited but are overwritten on startup again. Bug 156226 is for that. In 3.2 JUNIT_HOME got replaced by the JUnit container: Remove you classpath entry and add Library > JUnit where you can configure 3.8.1 or 4.1 *** This bug has been marked as a duplicate of 156226 ***
Reopen to set correct duplicate bug...
In fact this bug is not a duplicate of bug 156226 but depends on it. Now that bug is fixed, UI may change to warn user that this variable cannot be changed...
JUNIT_HOME and UNIT_SRC_HOME have been marked as deprecated and read-only,
Verified in I20070207-0800.