Eclipse offers to configure the way we use JRE with eclipse per project in a few different places.
This is hard to remember when we don't use it so frequently, since we don't create project frequently as much as we create the files in them.
Hence this blog.
The first place where we can tell eclipse about different JREs we have in the system and make them available to eclipse for giving them to the projects in the workspace is
Window > Preferences > Java > Installed JREs
Here you can add as many different JREs you want to make available to different projects.
Out of the many, only one will be checked which will be the default JRE for new projects.
So how to change the JRE per project once it is created or checked out from version control?
Right click on the corresponding project and select properties
Java Build Path > Libraries
Here remove the default JRE and add the one you want via the Add Library... button.
Now this particular project will use a different (this new one) JRE from the others.
Ok, so instead of Sun JRE, this project is configured to use say IBM JRE, however I want to set the compliance level to 1.5 not 1.6.
In that case, select the Java Compiler from project properties.
Enable the checkbox for project specific settings.
And select the compliance level to be used for this project. Keep in mind the project JRE should support the compliance level opted for.
Powered by Blogger.
Labels
- Alfresco ( 8 )
- Ant ( 2 )
- Apache ( 6 )
- Apex ( 2 )
- Business ( 1 )
- Chirp ( 13 )
- Cisco ( 1 )
- CVS ( 2 )
- Database ( 3 )
- Eclipse ( 6 )
- Excel ( 1 )
- favorite ( 4 )
- force.com ( 1 )
- HSQLDB ( 2 )
- InnerCoder ( 2 )
- Java ( 3 )
- jBPM ( 2 )
- Life ( 3 )
- Lightning Web Components ( 1 )
- Mac OS X ( 7 )
- Mgmt ( 2 )
- Miscellaneous ( 1 )
- MySQL ( 4 )
- Netbeans ( 1 )
- Networking ( 2 )
- Nutch ( 1 )
- Open Source ( 2 )
- PHP ( 5 )
- phpmyadmin ( 1 )
- PostgreSQL ( 1 )
- Programming ( 4 )
- Salesforce ( 16 )
- Salesforce Apex ( 3 )
- Search Engine ( 1 )
- Setup Configuration ( 23 )
- SFDX ( 5 )
- slide ( 3 )
- Solaris ( 5 )
- Spreadsheet ( 1 )
- SQL ( 1 )
- Staffing ( 1 )
- Technology ( 28 )
- Thought Leadership ( 1 )
- Thunderbolt ( 1 )
- ubuntu ( 2 )
- Unix ( 9 )
- Unix commands ( 4 )
- ViewOne ( 1 )
- VisualCode ( 4 )
- Web ( 1 )
- WebCrawler ( 1 )
- WordPress ( 1 )
- Workflow ( 1 )
- XML ( 2 )
- XML Binding ( 1 )
- XMLBeans ( 1 )
- Yahoo ( 1 )
Post a Comment