Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run STS on Java version 1.7

I need to run eclipse(java 1.7) and STS 3.8.1 ( java 1.8) but if i select the java 7 as default i am getting error in the STS 3.8.1. I am using OS : ubuntu 14.10

Error  : Version 1.7.0_80 of the JVM is not suitable for this product. Version: 1.8 or greater is required.

Or I select java 1.8 as default eclipse is not working fine.

My requirement is to build a Project using java 1.7 with STS. and latest version 3.8.1 doesnot support the java 1.7.

and i try to search which version of STS support 1.7 but i am not getting any answer .

like image 496
Prabhat Yadav Avatar asked Sep 29 '16 05:09

Prabhat Yadav


People also ask

How do I add Java 1.7 compiler to Eclipse?

To do this, right click your “cse331” folder and choose “Properties.” In the pane that appears, click on “Java Compiler” (not the drop-down menu, simply click on “Java Compiler”) and click the checkbox to “Enable project specific settings.” Then, under the “Compiler Compliance Level” change this from 1.8 to 1.7.

Is JDK required for STS?

Setting the JDK1 requires a JDK 8 or JDK9 to run on top of. Nevertheless the native Eclipse launcher component might pick up a JRE or an older JDK automatically if you don't specify which JDK to run STS on top of. To avoid this, you can specify the JDK in the sts.


1 Answers

This question is old, but for anyone looking at this in the future who can't install Java 8 or otherwise can't use the workaround in the other answer - 3.8.0 was the first version requiring Java 1.8, while 3.7.3 still plays nice with only Java 1.7.

like image 104
meowsephine Avatar answered Nov 08 '22 09:11

meowsephine