Youtrack 安装,Java 未找到
Youtrack Installation, Java not found
我收到以下错误消息:
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='/usr/bin/gij-4.7/opt/jdk/jdk1.7.0_75'
此行完全错误,此路径在您的安全系统上不存在。
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 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='/usr/bin/gij-4.7/opt/jdk/jdk1.7.0_75'
此行完全错误,此路径在您的安全系统上不存在。
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'