【发布时间】:2015-05-05 19:18:00
【问题描述】:
您好,我一直在尝试在 windows 8.1 上安装 oracle 的服务器 weblogic,但是当我运行 configure.cmd 文件时得到以下信息:
错误:您必须设置 MW_HOME 并且它必须指向一个目录 存在 WebLogic 安装。确保将此变量指向 提取 zip 分发的位置。
如何纠正这个错误?
【问题讨论】:
您好,我一直在尝试在 windows 8.1 上安装 oracle 的服务器 weblogic,但是当我运行 configure.cmd 文件时得到以下信息:
错误:您必须设置 MW_HOME 并且它必须指向一个目录 存在 WebLogic 安装。确保将此变量指向 提取 zip 分发的位置。
如何纠正这个错误?
【问题讨论】:
从产品下载页面http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html 链接有一个自述文件,尽管您的经验表明定义 MW_HOME 不是可选的! ...
1. Extract the contents of the zip to a directory (eg: /home/myhome/mywls)
This will create a base directory named wls12130 under /home/myhome/mywls
MW_HOME will be the entire directory including the base directory.
(eg: MW_HOME will be /home/myhome/mywls/wls12130).
2. Setup JAVA_HOME and optionally, MW_HOME variables in the current shell as required
for the target platform.
Windows
> set JAVA_HOME=C:\home\myhome\myjavahome
> set MW_HOME=C:\home\myhome\mywls\wls12130
3. Run the installation configuration script in the MW_HOME directory.
This step is required to be run only once. If you move the installation to
another location/machine, you need to rerun this step.
Windows
> configure.cmd
【讨论】:
环境变量设置不正确。
1.- 创建产品目录
mkdir E:\weblogic\wls
2.- 正确设置环境变量
设置 JAVA_HOME=_path_to_\jdk1.7.0
设置 MW_HOME=E:\weblogic\wls
(根据您的安装更改上述设置)
3.- 运行configure.cmd
【讨论】: