简体   繁体   English

如何在 weblogic12c 中更改 jdk 版本

[英]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.

相关问题 如何在weblogic12c中将动态图像作为servletoutputstream的一部分发送 - how to send dynamic image as part of servletoutputstream in weblogic12c WSSEcurityContext不会出现在WebLogic12c上 - WSSEcurityContext doen't appear on WebLogic12c Weblogic12c部署EJB模棱两可的错误 - Weblogic12c deployment EJB ambiguous error 将Maven工件从Artifactory部署到WebLogic12c - Deploying Maven artifacts from Artifactory to WebLogic12c 在Weblogic12c上部署Spring Boot REST服务 - Spring Boot REST service deploy on Weblogic12c 是否可以在WebLogic12c上使用Resteasy(或不使用Jersey-JAXRS实现)? - Resteasy (or not Jersey - JAXRS implementation) on WebLogic12c, is possible? 连接池-数据源异常与休眠c3p0一起重新部署weblogic12c war - Exception with connection pool-datasource redeploying weblogic12c war with hibernate c3p0 为什么Spring4.1.3 webmvc在weblogic12c中内部调用hibernate-validator - Why Spring4.1.3 webmvc internally calling hibernate-validator in weblogic12c 在Weblogic12C上访问SpringBoot示例应用程序的新部署时出现问题 - Problems accessing fresh deploy of SpringBoot sample app on Weblogic12C 如何解决Eclipse Weblogic插件JDK版本合规性错误 - How to solve eclipse weblogic plugin jdk version compliance error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM