Eclipse and java5

0 0
Read Time:40 Second

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

About Post Author

Aino Andriessen

Aino Andriessen is principal consultant and expertise lead 'Continuous Delivery'. His focus is on Oracle Fusion Middleware ADF and SOA development, Continuous Delivery, architecture, improving the software development proces and quality management. He is a frequent presenter at Oracle Open World, ODTUG Kaleidoscope, UKOUG Technology Conference and OUGN VĂ¥rseminar. He writes articles and publishes at the AMIS technology blog (http://technology.amis.nl/blog/).
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

4 thoughts on “Eclipse and java5

  1. I’m running 3.0 on a JDK 5.0 for a while and as long as I stick to Java 1.4 in code everything works fine. Of course the editor complains if I try new J5 stuff.
    đŸ™‚ stw

Comments are closed.

Next Post

AMIS Query - ADF and JHeadstart - Judgment Day; also: UIX Skins, ADF and WebServices and JHeadstart New Features

Yesterday, Thursday May 26th, AMIS organized another of its AMIS Queries. These sessions usually bring together a substantial number of top Oracle & Java Developers from The Netherlands. This session assembled over 30 developers, from most well known Oracle and Java consultancy firms. The agenda covered the following topics: ADF […]
%d bloggers like this: