无效的 JavaSE-1.8 运行时:该路径指向丢失或无法访问的文件夹

huangapple go评论48阅读模式
英文:

Invalid runtime for JavaSE-1.8: The path points to a missing or inaccessible folder

问题

Earlier vscode was working normally but now it can't recognize the paths for runtime.

Environment:

VSCode Version: 1.77.1 (user setup)

OS: Windows_NT x64 10.0.22621

Java Extension Version: v0.49.1

JDK Version: "11.0.15" 2022-04-19

I'm getting 2 errors

"Invalid runtime for JavaSE-1.8: The path points to a missing or inaccessible folder
(C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\8)."

and

"Invalid runtime for JavaSE-19: The path points to a missing or inaccessible folder (C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\19)."

{
"name": "JavaSE-1.8",
"path": "C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\8"
},

{
"name": "JavaSE-11",
"path": "C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot"
},
{
"name": "JavaSE-17",
"path": "C:\Program Files\Java\jdk-17.0.5",
"default": true
},

{
"name": "JavaSE-19",
"path": "C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\19"
}

英文:

Earlier vscode was working normally but now it can't recognize the paths for runtime.

Environment:

VSCode Version: 1.77.1 (user setup)

OS: Windows_NT x64 10.0.22621

Java Extension Version: v0.49.1

JDK Version: "11.0.15" 2022-04-19

I'm getting 2 errors

"Invalid runtime for JavaSE-1.8: The path points to a missing or inaccessible folder
(C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\8)."

and

"Invalid runtime for JavaSE-19: The path points to a missing or inaccessible folder (C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\19)."

 {
        "name": "JavaSE-1.8",
        "path": "C:\\Users\\tj675\\AppData\\Roaming\\Code\\User\\globalStorage\\pleiades.java-extension-pack-jdk\"
    },
    
    {
        "name": "JavaSE-11",
        "path": "C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.15.10-hotspot"
    },
    {
        "name": "JavaSE-17",
        "path": "C:\\Program Files\\Java\\jdk-17.0.5",
        "default": true
    },
    
    
    {
        "name": "JavaSE-19",
       "path": "C:\\Users\\tj675\\AppData\\Roaming\\Code\\User\\globalStorage\\pleiades.java-extension-pack-jdk\"
    }

答案1

得分: 0

请检查以下文件夹是否存在,并确保您对它们具有访问权限。

C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\8
C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\19

英文:

Please check that the following folders exist and that you have access rights to them.

C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\8
C:\Users\tj675\AppData\Roaming\Code\User\globalStorage\pleiades.java-extension-pack-jdk\19

huangapple
  • 本文由 发表于 2023年4月11日 13:57:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/75982772.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定