How to run STS on Java version 1.7

前端 未结 5 1627
清歌不尽
清歌不尽 2021-01-18 10:34

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

5条回答
  •  情话喂你
    2021-01-18 11:18

    It is asking for jdk 1.8 to open and run the STS (eclipse). It will still allow you to build your project/code with whatever JDK version you want.

    Install jdk1.8, set your JAVA_HOME and PATH env variables so that 1.8 becomes your default jdk. After this your should be able to open STS. Then setup project and set project's JDK to 1.7 or whatever you want.

    I hope it helps.

提交回复
热议问题