Perform for today. Adapt for tomorrow.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
It looks like you are compiling with an earlier version of Java. Can you confirm your project is using Java 1.4 in Eclipse?
Perform for today. Adapt for tomorrow.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Perform for today. Adapt for tomorrow.
Originally posted by Rahul Shilpakar:
How can i see which JDK version i am using in Eclipse?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Perform for today. Adapt for tomorrow.
Perform for today. Adapt for tomorrow.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Rahul Shilpakar:
Now, what am i suppose to do so that my Java code will get compile with latest version (i.e. 1.6) of JDK which i already installed on my mahcine ?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
originally posted by : Ilja Preuss
you need to *both* point it to the right JDK *and* tell the *eclipse compiler* to act 1.6 compliant.
Perform for today. Adapt for tomorrow.
Originally posted by Rahul Shilpakar:
how can i do that? I mean what are the steps to do that?
Thanks
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Orginally posted by Tim Holloway
As far as I can remember, Eclipse 3.0 supported Java 5, but not Java 6.
Perform for today. Adapt for tomorrow.