gpt4 book ai didi

java - Youtrack 安装,未找到 Java

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:52:57 24 4
gpt4 key购买 nike

我收到以下错误消息:

Java executable of version 1.7 is not found: - Java executable is not found under the specified directories: 'internal/java/mac-x64', 'internal/java/windows-x86' - Neither the JAVA_HOME nor the JRE_HOME environment variable is defined - Java executable is not found in the directories listed in the PATH environment variable

Please make sure one of the environment variables is defined and is pointing to valid Java (JRE) installation, then run again Environment variable FJ_DEBUG can be set to enable debug output

Java not found. Please ensure JDK or JRE is installed and JAVA_HOME environment variable points to it. youtrack.sh: 12: exit: Illegal number: -1

但我确实在我的 linux 服务器上安装了 JDK:

root@ikw:/home/ad# update-alternatives --display java
java - auto mode
link currently points to /usr/bin/gij-4.7
/opt/jdk/jdk1.7.0_75/bin/java - priority 100
/usr/bin/gij-4.7 - priority 1047
Current 'best' version is '/usr/bin/gij-4.7'

我在文件中也有路径变量 cofig:.profile

JAVA_HOME='/usr/bin/gij-4.7/opt/jdk/jdk1.7.0_75/bin/java'
export JAVA_HOME
PATH="$JAVA_HOME/bin:$PATH"
export PATH

知道如何解决 java 问题以便能够安装 youtrack 吗?

最佳答案

此行完全错误,此路径在您的安全系统上不存在。

JAVA_HOME='/usr/bin/gij-4.7/opt/jdk/jdk1.7.0_75/bin/java'

改变你的JAVA_HOME:

JAVA_HOME='/opt/jdk/jdk1.7.0_75'

关于java - Youtrack 安装,未找到 Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29379099/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com