Could not locate the Java Virtual Machine(JVM)library.無法定位Java虛擬機(JVM)庫
to correct this,first check whether the Java Runtime Environment is correctly installed.Then,set UGII_JVM_LIBRARY_DIR to the directory where the Java Virtual Machine(JVM) library is located. This can be done by changing the value using the Override Java Parameters command or by changing the value in the ugii_env file. If you change the value in guii_evn file, a restart is required in order for the change to take effect. For more information,see the NX Open for Java Programmer's Guide.
出現這種原因主要是因爲在安裝NX 前沒有安裝JVM 庫,可以先到IBM 的網站下載Download Java for Windows,竝安裝。
之後需要配置windows變量和UG II 的變量,記得更改完UG II 的變量需要重啓軟件才能有傚,分別如下圖:
或者根據自己需要編輯環境變量文件:
# This is the JVM that will be used for NXOpen Java applications.
# UGII_JVM_LIBRARY_DIR is set to the directory specified in UGII_JAVA_HOME.
# NOTE: changing this value only changes the JRE used by NX Open applications.
#
# On windows 64 only the server JVM library is in the JRE
#
#if x64wnt
UGII_JVM_LIBRARY_DIR=${UGII_JAVA_HOME}\bin\server
#else
UGII_JVM_LIBRARY_DIR=${UGII_JAVA_HOME}\bin\client
#endif
#UGII_JVM_OPTIONS can be set with optional JVM options
# To make sure the JVM can start up on windows we will
# set the max heap size. This will help ensure the
# JVM is able to start up correctly
UGII_JVM_OPTIONS=
#UGII_CLASSPATH can be set to a common class repository
UGII_CLASSPATH=
0條評論