skip to Main Content

i have this problem on vscode for a java project. i’ve also other java projects, but they’re not giving me any problems. this is the only one with this issue. can anyone help to solve this?

i already tried adding the java installation path to the java home settings in vs code. but nothing happened.

2

Answers


  1. You have to update the version in your pom.xml file, then update your project config in order to apply the changes.

    Login or Signup to reply.
  2. Read this document to get started with java.

    This configuration can set the JDk

    "java.configuration.runtimes": [
      {
        "name": "JavaSE-1.8",
        "path": "/usr/local/jdk1.8.0_201"
      },
      {
        "name": "JavaSE-11",
        "path": "/usr/local/jdk-11.0.3",
        "sources" : "/usr/local/jdk-11.0.3/lib/src.zip",
        "javadoc" : "https://docs.oracle.com/en/java/javase/11/docs/api",
        "default":  true
       },
       {
        "name": "JavaSE-12",
        "path": "/usr/local/jdk-12.0.2"
       },
    ]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search