我无法在 Visual Studio Code 上设置 JDK [英] I can't set up JDK on Visual Studio Code

查看:24
本文介绍了我无法在 Visual Studio Code 上设置 JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了:

点击它,它将我重定向到 Red Hat 站点并让我下载 Red Hat Developer Studio,但正如我所说,我想要它在 Visual Studio Code 中.我确实下载了JDK,但不知道下一步要做什么.

clicked on it, it redirected me to Red Hat site and made me download Red Hat Developer Studio, but as I said I want it in Visual Studio Code. I did download JDK, but don't know what to do next.

推荐答案

  • Ctrl+逗号.
  • 搜索java.home".
    • 输入你的java路径(不要忘记把路径放在" ").*
    • 单击以 "java.home" 开头的行旁边的铅笔.
    • 点击复制到设置".
    • 输入你的java路径(不要忘记把路径放在" ").*
    • Ctrl+S.
    • Click on the pencil next to the line starting with "java.home".
    • click on "Copy to settings".
    • Type in your java path(Don't forget to put the path in " ").*
    • Press Ctrl+S.

    *如果您不知道自己的 java 路径,请在终端中输入 which java(在 Windows 上,请注意正确的格式,例如:"java.home": "C:/Program Files/Java/jdk-11.0.2")

    *If you don't know your java path, type in which java in your terminal(On windows, Please note the right format, e.g: "java.home": "C:/Program Files/Java/jdk-11.0.2")

    这篇关于我无法在 Visual Studio Code 上设置 JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆