错误 - 不能通过unix文件创建Java虚拟机

时间:2016-10-28 05:46:04

标签: java jvm java-native-interface 32-bit

我编写了一个带有示例代码的unix程序,如下所示:

export PATH=/usr/java5/jre/bin:$PATH
export JAVA_HOME=/usr/java5/jre/bin
export MW_HOME=$UCM_HOME/Middleware

export CLASSPATH=$MW_HOME:$MW_HOME/eaton/


# Verify whether required variables are set
if [ -z "${JAVA_HOME}" ]; then
  printf "\n\nError: Set the following environment variables:\n\n"
  printf "JAVA_HOME            (Absolute path to jdk directory)\n\n"
  exit 1
fi

JAVACMD="${JAVA_HOME}/java"



LIB="${UCM_HOME}/generic/oracle.ucm.fa_genericclient_11.1.1.jar"

config_file="${UCM_HOME}/generic"


echo $config_file
echo "${config_file}/connection.properties"


# jrf-client.jar is a manifest jar with MANIFEST.MF Class-Path referencing required client libraries
CUSTOM_CLASSPATH=$MW_HOME/oracle_common/modules/oracle.jrf_11.1.1/jrf-client.jar

checkerror()
{
  RESULTCODE=$?
  if [ ${RESULTCODE} -ne 0 ];then
    exit 1
  fi
}

${JAVACMD} -Xms512m \
-classpath "${CLASSPATH}:${LIB}" \
-Ducm.prop.default="${config_file}/connection.properties" \
test.oracle.apps.tx.GenericToolUpload "${FILE_LOCATION}/${FILE_NAME}" "${ENTITY_LIST}"

checkerror
exit

当我执行此程序时。用 -

会出错
JVMJ9GC020E -Xms too large for heap
JVMJ9VM015W Initialization error for library j9gc23(2): Failed to initialize
Could not create the Java virtual machine.

用户个人资料设置为256M。我增加到512M

但我仍然遇到同样的错误。

我认为${JAVACMD} -Xms512m \中出错了。但不知道解决方案。

0 个答案:

没有答案