[英]how to change jdk version in weblogic12c
i have configured weblogic server in eclipse but when ever it starts its taking jdk older version like Starting WLS with line: D:\\dev\\Java\\jdk1.8.0_172\\bin\\java -server我已经在 Eclipse 中配置了 weblogic 服务器,但是当它开始使用 jdk 旧版本时,例如用以下行启动 WLS:D:\\dev\\Java\\jdk1.8.0_172\\bin\\java -server
i have to change it to higher version.我必须将其更改为更高版本。
On Weblogic 12c you have two different situations:在 Weblogic 12c 上,您有两种不同的情况:
1) Updating the JDK Location in an Existing Oracle Home 1) 更新现有 Oracle Home 中的 JDK 位置
2) Updating the JDK Location in an Existing Domain Home 2) 更新现有域主目录中的 JDK 位置
You could do the following steps: To update the JDK location in the .globalEnv.properties file: Use the getProperty.sh|cmd script to display the path of the current JDK from the JAVA_HOME variable.您可以执行以下步骤: 更新 .globalEnv.properties 文件中的 JDK 位置:使用 getProperty.sh|cmd 脚本从 JAVA_HOME 变量显示当前 JDK 的路径。 For example:
例如:
(UNIX) ORACLE_HOME/oui/bin/getProperty.sh JAVA_HOME
(Windows) ORACLE_HOME\oui\bin\getProperty.cmd JAVA_HOME
echo JAVA_HOME
Where JAVA_HOME is the variable in the .globalEnv.properties file that contains the location of the JDK.其中 JAVA_HOME 是 .globalEnv.properties 文件中包含 JDK 位置的变量。
Back up the path of the current JDK to another variable such as OLD_JAVA_HOME in the .globalEnv.properties file by entering the following commands: (UNIX) ORACLE_HOME/oui/bin/setProperty.sh -name OLD_JAVA_HOME -value specify_the_path_of_current_JDK (Windows) ORACLE_HOME\\oui\\bin\\setProperty.cmd -name OLD_JAVA_HOME -value specify_the_path_of_current_JDK通过输入以下命令,将当前 JDK 的路径备份到另一个变量,例如 .globalEnv.properties 文件中的 OLD_JAVA_HOME:(UNIX) ORACLE_HOME/oui/bin/setProperty.sh -name OLD_JAVA_HOME -value specified_the_path_of_current_JDK (Windows) ORACLE_HOME\\ oui\\bin\\setProperty.cmd -name OLD_JAVA_HOME -value 指定_the_path_of_current_JDK
This command creates a new variable called OLD_JAVA_HOME in the .globalEnv.properties file, with a value that you have specified.此命令使用您指定的值在 .globalEnv.properties 文件中创建一个名为 OLD_JAVA_HOME 的新变量。 Set the new location of the JDK in the JAVA_HOME variable of the .globalEnv.properties file, by entering the following commands:
通过输入以下命令,在 .globalEnv.properties 文件的 JAVA_HOME 变量中设置 JDK 的新位置:
(UNIX) ORACLE_HOME/oui/bin/setProperty.sh -name JAVA_HOME -value specify_the_location_of_new_JDK
(Windows) ORACLE_HOME\oui\bin\setProperty.cmd -name JAVA_HOME -value
specify_the_location_of_new_JDK指定_the_location_of_new_JDK
After you run this command, the JAVA_HOME variable in the .globalEnv.properties file now contains the path to the new JDK, such as jdk1.8.0_131.运行此命令后,.globalEnv.properties 文件中的 JAVA_HOME 变量现在包含新 JDK 的路径,例如 jdk1.8.0_131。
You can read the complete Oracle Guide您可以阅读完整的Oracle 指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.