Forums Register Login

how to force compiler to use particular version of java in eclipse

+Pie Number of slices to send: Send
someone please tell me how to force compiler to use particular version of java while running code.....currently i have Java7 on my computer....and i am preparing for scjp 6 exam....so for this i want to run my code as java6 version....i know how to do it in command prompt (javac -source 6 ClassName.java)...no idea how to give this source 6 flag in eclipse IDE....Please please help me....
+Pie Number of slices to send: Send
Eclipse->Preferences->Java->Installed JREs
Of course you will need to install JDK1.6 before you use the above to point to it.
+Pie Number of slices to send: Send
You don't need to install JDK 6. Instead, just go to Window > Preferences > Java > Compiler and in set "Java compliance level" to 1.6
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1124 times.
Similar Threads
newbie needs direction
Eclipse vs NetBeans
can i use Java7 for scjp6 exam?
checking eclipse version
Getting error: Bad version number in .class file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:36:38.