Change JRE to Workbench default JRE or jdk1.7.How to fix an error for Apache Tomcat? Step-1 When you install Java (JRE) and try build your app, the build now finds Javas JRE which has everything it is needs to run Java but not build it, this is why the. Click on Project -> Clean (Make sure you follow Pro Tips mentioned above) Add new JRE and click checkbox to make that JRE default. Now let’s take a look at steps to change default JRE: So, if you change your JRE version in the future then you have to just update your default JRE only once and all your projects will get updated. It’s always good idea to use Eclipse Default JRE for all of your projects. It’s kind of inconvenient to change setting for each project. You need to change JRE for each project separately. But what if you have so many projects in Eclipse workspace? Well, there is a simple solution: just change JRE for each project and Tomcat. Edit the server and change the JRE location as mentioned in above diagram. In addition to that Apache Tomcat was giving me an error The JRE could not be found. Initial version I was using was JDK 1.8.Īfter changing JDK version when next time I opened my Eclipse Workspace I noticed so many environment errors because Eclipse was not able to find version 1.8 as it wasn’t my default JDK version for Eclipse. On my personal Macbook Pro I changed the JDK location and installed version 1.7.0_79.
0 Comments
Leave a Reply. |