我试图在Ubuntu22.04上运行Clion。
我安装了JRE,我认为我通过运行以下命令安装了JDK:
sudo apt install -y openjdk-18-jdk但是当我跑的时候。/clion.sh我得到:
没有找到JDK请验证CLION_JDK、JDK_HOME或JAVA_HOME环境变量指向有效的JDK安装。
有人能帮忙吗?
下面是我所遵循的Jetbrains的安装说明:
INSTALLATION INSTRUCTIONS
===============================================================================
Linux Installation Instructions
------------------------------------------------------------------------------
1. Unpack the CLion distribution archive that you downloaded to
where you wish to install the program. We will refer to this destination
location as your {installation home} below.
2. Open a console and cd into "{installation home}/bin" and type:
./clion.sh
to start the application. As a side effect, this will initialize various
configuration files in the ~/.CLion2020.1 directory.发布于 2023-04-08 08:33:02
CLion与自己的JDK捆绑在一起,所以即使您没有安装JDK,也不应该发生这种情况。如果您正确下载和解压缩了存档,那么应该有一个包含您需要的JDK的CLion-2020.1.1/jbr/bin/文件夹。
很可能您已经从其他地方下载或复制了这些文件,而且这些文件是不可执行的。如果是这样,只需对这些文件应用权限更改即可:
chmod -R +x ./jbr/bin/(您还可能希望对其他一些文件执行此操作,以便CLion可以执行这些文件并启动它们)
https://askubuntu.com/questions/1416653
复制相似问题