VS代码执行环境J2SE-1.5。没有安装JRE。 | Ubuntu | Jdk1.8

时间:2019-05-28 18:31:03

标签: java visual-studio-code version qr-code environment

我有:  -Ubuntu 18.04lts  -JDK 1.8.0_201

我正在研究项目,当我下载我们的项目时,我遇到了这个问题。我安装了jdk-1.5,但无法正常工作。enter image description here

1 个答案:

答案 0 :(得分:0)

谢谢你们。我解决了我的问题:

我有:

  

Maven 3.8.0   Java 1.8   VS代码:1.34.0   Ubuntu:18.04仿生

但是我的问题是: 在我的pom.xml中,我使用:

pom.xml ##

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source> <!-- Here, i need to use: 1.8-->
<maven.compiler.target>1.7</maven.compiler.target> <!-- The same thing: 1.8-->

谢谢大家

相关问题