0

我尝试从 RAD(Rational Application Development)运行 PMT(配置文件管理工具),但即使我以管理员身份启动 RAD,我也收到错误“无法创建 Java 虚拟机”。我在互联网上搜索,我看到的所有建议都对我不起作用。首先,我尝试以管理员身份打开命令行并运行 manageprofiles。其次,我下载了某个名为 run_manageprofilesInteractive 的工具,但我仍然遇到同样的错误。最后,我看到一些建议添加两个变量来限制内存大小。所有详细信息都从以管理员权限运行的命令行打印。

First tentative:
C:\IBM\SDP\runtimes\base_v7\bin>manageprofiles -create -templatePath "WebSphere
Application Server, v7.0 test environment Installation Location\profileTemplates
\default" -isDeveloperServer -profileName dev_profile_Secure -enableAdminSecurit
y true -adminUserName wasadmin -adminPassword wasadmin -cellName localhostNode01
Cell -nodeName localhostNode01
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
Error: could not load Mercury Interactive support. Please run the setup again.
       If the problem persists please contact Mercury's Customer support.
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
JVMJ9VM015W Initialization error for library jvmhook(-3): JVM_OnLoad failed
Could not create the Java virtual machine.


C:\IBM\SDP\runtimes\base_v7\bin>java -version
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
java version "1.6.0_45"

Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

Second Tentative:
C:\IBM\SDP\runtimes\base_v7\bin>run_manageprofilesInteractive.bat

C:\IBM\SDP\runtimes\base_v7\bin>CALL "C:\IBM\SDP\runtimes\base_v7\bin\setupCmdLi
ne.bat"
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
Error: could not load Mercury Interactive support. Please run the setup again.
       If the problem persists please contact Mercury's Customer support.
JVMJ9VM011W Unable to load j9jpi24: The specified module could not be found.
JVMJ9VM015W Initialization error for library jvmhook(-3): JVM_OnLoad failed
Could not create the Java virtual machine.

Lsat tentative after restarting the machine.
C:\IBM\SDP\runtimes\base_v7\bin>set _JAVA_OPTION
_JAVA_OPTIONS=-Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~
1\classes;C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
4

2 回答 2

0

安装前你需要检查JDK路径应该直接在c:/下面这样

C:\Java\jdk1.6.0_27 并确保 jre 也在同一个文件夹中,如 C:\Java\jre6

检查 JDK 版本与 Websphere 的兼容性...下载并安装正确版本的 JDK...

还使用正确的JDK路径设置路径环境变量(控制面板\系统和安全\系统->高级系统设置->转到高级选项卡->转到环境变量),如下所示

PATH=C:\Java\jdk1.6.0_27\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program File s\Lenovo\Bluetooth Software\;C:\Program Files \Lenovo\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared

希望它能解决你的问题......因为它解决了我的问题。

于 2015-09-21T03:26:11.207 回答
-1

您需要设置 JAVA_HOME 和 PATH 变量,然后它将起作用。

于 2015-09-09T16:52:35.303 回答