File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Compiler Is default Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Compiler Is default" Watch "Eclipse Compiler Is default" New topic

Eclipse Compiler Is default

naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
Dear Sir, I Am Facing Some Problem In Eclipse
1- IS the Eclipse Has its Own Compiler(Like javac) and its can be seen inside of windows->preferences-java-compiler??
2-Its Different From Installed Javac Comiler as i Read Then Why Should I Need to Installed java Before Eclipse IDE Using?
3- If I installed Java Version 1.7 In MY Machine Then Can I change The Compiler Of Eclipse Or It Will Use Its Own Compiler and How?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

1) No. Eclipse picks up the JDK from your machine
2) See above
3) Yes. Eclipse->Preferences->Java->Installed JREs->Add. Once you add a different JDK (yeah the JRE is a misnomer), make sure to select the check box so that version is used.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
Dear Sir, I have done as you Said Accordingly ( Eclipse->Preferences->Java->Installed JREs->Add) I have Given the path Of Installed JDk 1.7. and i have Seleclected the Check Box as Default but still Is showing (windows->preferences-java-compiler) in drop down as 1.3 Or 1.4 Not Showing 1.7. But Today I am Using Latest version of eclipse JUNO It showing 1.3,1.4,1.5,1.6,1.7. And I have Selected 1.7.

Dear Sir One more thing As you said its Take my system JDK but In my laptop ,there is not 1.3 Then Why Its showing 1.3 Or 1.5 In dropDown Or There Is no Effect To Choosen 1.3 Or 1.4 Its depend On the JRE Which The Eclipse is Using??
Peter Johnson

Joined: May 14, 2008
Posts: 5852

When you select a 1.7 JDK, you will see selections for as far back as 1.3 because you can compile to 1.3-compatible class files. See the Java compiler documentation regarding the -source and -target options:

If you previously created any projects, you might have to go into those projects and change the Java level in them; they will not be automatically updated to 1.7. To do this, right-click each project, select Properties and look at the Java Compiler entry.

JBoss In Action
I agree. Here's the link:
subject: Eclipse Compiler Is default
It's not a secret anymore!