UG爱好者

标题: UGII_JVM_LIBRARY_DIR设置,本人win7 64系统 [打印本页]

作者: a190295060    时间: 2018-2-6 09:57
标题: UGII_JVM_LIBRARY_DIR设置,本人win7 64系统
Could not locate the Java Virtual Machine(JVM) library.
To correct this,first check whether the Java Runtime Environement 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 cmmand or by changing the value in the ugii_env file. If you change the value in the ugii_env file,a restart is required in order for the change to take effect. For more information, see the NX Open for Java Progrmmer's Guide.

文件:o:\ugnx120\ip27\src\syss\no\ind\lmldr.c, 行号;2172
JRE check failed

找不到虚拟机.jpg (145.83 KB, 下载次数: 313)

找不到虚拟机.jpg

作者: a190295060    时间: 2018-2-6 13:08
       
参与/回复主题关闭
RE: UGII_JVM_LIBRARY_DIR设置,本人win7 64系统 [修改]
作者: a190295060    时间: 2018-2-6 13:28
看图片,,,,,不行了

作者: a190295060    时间: 2018-2-6 13:29
文件名添加到帖子

Java问题.png (48.22 KB, 下载次数: 112)

Java问题.png

Java问题1.png (25.39 KB, 下载次数: 111)

Java问题1.png

作者: davidcad*    时间: 2018-2-6 13:59
路過,學習學習!!!
作者: hiug    时间: 2018-2-6 16:07
a190295060 发表于 2018-2-6 13:29
文件名添加到帖子

环境变量中java指向不对,指向的未1.7版,需要至少1.8以上的才行。
作者: a190295060    时间: 2018-2-7 08:36
# Java NXOpen Environment Variables
#########################################################################
#
# UGII_JAVA_HOME should point to the base directory of the JRE Installation.
# The value below is just an example that will be different on your system.
# Changing this variable will cause all NX java based applications to use the specified JRE.
# This is an example of how this value can be set.  Note that UGII_JAVA_HOME
# is now read from the registry as well.  So the order of precedence becomes:
#    1.  ugii_env.master file if set
#    2.  System environment variable
#    3.  value read from UGII_ENV_FILE if set
#    4.  value read from users ugii_env.dat file if set
#    5.  Registry value read from HKLM\SOFTWARE\JavaSoft
#    6.  The value set below.
# in addition if the ugii_env.master file has a value of:
#    UGII_JAVA_HOME=
# then this forces the reading of the registry bypassing steps 2-4 above.

#if x64wnt
#if FILE c:\apps\Java\jre8x64
UGII_JAVA_HOME=c:\apps\Java\jre8x64
#else
#if FILE "C:\Program Files\Java\jre8"
UGII_JAVA_HOME="C:\Program Files\Java\jre8"
#endif
#endif
#else
#if FILE c:\apps\Java\jre8
UGII_JAVA_HOME=c:\apps\Java\jre8
#else
#if FILE "C:\Program Files (x86)\Java\jre8"
UGII_JAVA_HOME="C:\Program Files (x86)\Java\jre8"
#endif
#endif
#endif

#
# 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=
作者: a190295060    时间: 2018-2-7 08:36
这段程序怎么理解
作者: a190295060    时间: 2018-2-27 09:54
UGII_JVM_LIBRARY_DIR设置,本人win7 64系统,
问题还没解决
作者: 哆啦西门吹    时间: 2018-3-29 00:20
a190295060 发表于 2018-2-27 09:54
UGII_JVM_LIBRARY_DIR设置,本人win7 64系统,
问题还没解决

同样遇到这个问题,求解决。10.0的可以生成报告。11.0也可以……




欢迎光临 UG爱好者 (https://www.ugsnx.com/) Powered by Discuz! X3.2