• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Eclipse Compiler Is default

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic