loadjava報錯Java: Not Found Error

環境信息:

EBS----------------12.1.3

RDBMS-----------11.2.0.3.0

OS-----------Linux 6.3

Symptoms

loadjava報錯,錯誤如下:

[appl02@vs009 ~]$ loadjava
/u01/VIS02/apps/tech_st/10.1.2/bin/loadjava: line 19: /nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.2/jdk/jre//bin/java: No such file or directory
/u01/VIS02/apps/tech_st/10.1.2/bin/loadjava: line 19: exec: /nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.2/jdk/jre//bin/java: cannot execute: No such file or directory

找不到JAVA

Cause

[appl02@vs009 ~]$ which java
/u01/VIS02/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java

與上述錯誤對比,顯而易見的是JAVA路徑不對

The JRE cannot be found or is being picked up from a different Oracle Home than where loadjava is installed.

Solution

Loadjava is Failing with Java: Not Found Error (文檔 ID 1184794.1)

Verify the JAVA_HOME environment variable being set by the loadjava utility is pointing to the right location. Open the script ot batch file and modify JAVA_HOME to point to the JRE location for the Oracle home where the loadjava utility is installed.

1、編輯$ORACLE_HOME/bin/loadjava文件中JAVA相關路徑

2、重新執行

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章