This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Compiler Is default

 
naval kumar
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
naval kumar
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html

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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic