How to run STS on Java version 1.7

Prabhat Yadav picture Prabhat Yadav · Sep 29, 2016 · Viewed 25.1k times · Source

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 .

Answer

meowsephine picture meowsephine · Mar 22, 2017

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.