Eclipse and java5 tools 15649 6401

Eclipse and java5

Use Eclipse with java5:

  • Download a 3.1 Milestone
  • Add java5 to the installed jre’s (Window > Preferences > Java > Installed JRE’s)
  • Set the compiler compliance level to 5.0 (Window > Preferences > Java > Compiler)

Although it is said that Eclipse must pick up java5 by starting it with eclipse.exe -vm <path -to-jdk1.5-install>binjavaw.exe (you can check that with Help > About Eclipse Platform > Configuration Details) it worked fine for without that setting (maybe because java5 is my system’s default).

For me the third option did the trick.
This is the error message I got before changing that setting:
is not generic; it cannot be parameterized with arguments <string>
Syntax error, parameterized types are only available if source level is 5.0

4 Comments

  1. Marjon Hilberink April 4, 2006
  2. Ted Weatherly September 23, 2005
  3. Ted Weatherly September 23, 2005
  4. Stephan H. Wissel May 26, 2005