简体   繁体   English

Weblogic 10.3.6域向导无法创建JVM

[英]Weblogic 10.3.6 Domain Wizard Could not create the JVM

I try to run WLS Domain Wizard to create a new domain for WebLogic installed in virtual environment Citrix 12.3.400.3. 我尝试运行WLS域向导为在虚拟环境Citrix 12.3.400.3。中安装的WebLogic创建新域。 It requires to run /Middleware/wlserver_10.3/common/bin/config.exe But as I do that the error arises immediately: 它需要运行/Middleware/wlserver_10.3/common/bin/config.exe,但是当我这样做时,错误立即出现:

Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.

I have installed there: 我已经安装在那里:

Java SE Development Kit 8 Update 51 (64-bit) - C:\Program Files\Java\jdk1.8.0_51
Java(TM) 6 Update 27 (64-bit) - C:\Program Files\Java\jre6
Java(TM) 7 Update 3 (64-bit) - C:\Program Files\Java\jre7
Java(TM) SE Development Kit 7 Update 3 (64-bit) - C:\Program Files\Java\jdk1.7.0_3

Env var: JAVA_HOME=C:\\Program Files\\Java\\jre1.8.0_51 环境变量:JAVA_HOME = C:\\ Program Files \\ Java \\ jre1.8.0_51

►java -version

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0646-windows-x86_64, compiled mode)

So, is there any hope to resolve this problem? 那么,有没有希望解决这个问题?

The answer is here: https://community.oracle.com/message/12743335# 答案在这里: https//community.oracle.com/message/12743335#

If multiple JDK installed on your computer, set JAVA_HOME before installing WLS. In your case: JDK 1.8 is not certified with the weblogic 10.3.6.
You must not set the JAVA_HOME variable after installation. The installer adds the correct Java Location in config files.

So I just change the JAVA_HOME variable to C:\\Program Files\\Java\\jdk1.7.0_03 所以我只是将JAVA_HOME变量更改为C:\\ Program Files \\ Java \\ jdk1.7.0_03

  1. Open %HOME%\\oracle_common\\common\\bin\\commEnv.cmd 打开%HOME%\\ oracle_common \\ common \\ bin \\ commEnv.cmd
  2. Set USER_MEM_ARGS environment variable after ":continue" tag 在“:continue”标签之后设置USER_MEM_ARGS环境变量
  3. You can do this using below (or with higer values): 您可以使用以下方法(或使用更高的值)来执行此操作:

    SET USER_MEM_ARGS=-Xms32m -Xmx1024m -XX:MaxPermSize=512m -XX:MaxHeapSize=512m SET USER_MEM_ARGS = -Xms32m -Xmx1024m -XX:MaxPermSize = 512m -XX:MaxHeapSize = 512m

  4. Try to re-create default domain again 尝试再次重新创建默认域

Before starting the weblogic installation, set required paths correctly and then proceed as like the below steps 在开始安装weblogic之前,请正确设置所需的路径,然后按照以下步骤进行操作

Example: Assuming that JDK is already installed in your machine at the path: C:\\Java\\jdk & wls_xxxxx.jar file is exist at C:\\Software. 示例:假设您的计算机上已经在以下路径中安装了JDK:C:\\ Java \\ jdk&wls_xxxxx.jar文件位于C:\\ Software。

  1. Run the command prompt as an administrator. 以管理员身份运行命令提示符。
  2. Set PATH,JAVA_HOME,_JAVA_OPTIONS from command prompt as like below 在命令提示符下设置PATH,JAVA_HOME,_JAVA_OPTIONS,如下所示

    C:\\Windows\\system32>set PATH=C:\\Java\\jdk\\bin C:\\ Windows \\ system32>设置PATH = C:\\ Java \\ jdk \\ bin

    C:\\Windows\\system32>set JAVA_HOME=C:\\Java\\jdk C:\\ Windows \\ system32>设置JAVA_HOME = C:\\ Java \\ jdk

    C:\\Windows\\system32>SET _JAVA_OPTIONS=-Xms512M C:\\ Windows \\ system32> SET _JAVA_OPTIONS = -Xms512M

  3. Change the directory to locate your weblogic jar file. 更改目录以找到您的weblogic jar文件。

    C:\\Windows\\system32>CD C:\\Software C:\\ Windows \\ system32> CD C:\\软件

  4. Run below command to start the weblogic installation 运行以下命令以开始weblogic安装

    C:\\Software>java -jar wls_xxxxx.jar C:\\ Software> java -jar wls_xxxxx.jar

Note: Choose java version as recommended in the weblogic installation guide. 注意:根据Weblogic安装指南中的建议选择Java版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM