Skip to content

JAVA_Home should be right but still shows "Note Java 8 can still be used in your own projects" #664

Closed
@doggy8088

Description

@doggy8088

Describe the bug

I think my Java setup in my Visual Studio Code should be right. But this extension still show me this:

Spring Tools Language Server requires Java 11 or higher to be launched. Current Java /usr/lib/jvm/java-8-openjdk-amd64/bin/java. (Note Java 8 can still be used in your own projects. Java 11 is only required to launch the Spring Tools Language Server process)

Source: Spring Boot Tools (Extension)

To Reproduce

  1. Initialize a Spring Boot project using this:

    https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.5.3&packaging=jar&jvmVersion=11&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=lombok,web
  2. Use `Remote-SSH: Connect to Host...' open Spring Boot project

  3. Open MAVEN view in EXPLORER, expand demo node, click the + sign in the Dependencies noe

  4. Search for spring-boot-starter-validation, choose the org.springframework.boot one.

  5. The VSCode will show this message immediately.

    image

  6. My JAVA_HOME should be right.

    image

  7. The VSCode setting is empty.

    image

Sample

Here is my sample project:

https://github.com/doggy8088/spring-boot-demo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions