In my AIX 7.1 , jre is not working. I have attempted reinstalling but not succeeded to get rid of the error. Following error I am getting (jvm.dll failed to load: global entrypoints not found)
bash-4.2# cd /usr/java6/jre/bin/
bash-4.2# java -version
jvm.dll failed to load: global entrypoints not found
Failed to find VM - aborting
bash-4.2#
Can someone suggest the root cause of the problem?
To find out which Java version is installed search for the installed package:
lslpp -l | grep -i java
In most cases this will be Java 1.4, 1.5, 1.6 or 1.7. Once you found the name of the package issue a
lslpp -f <packagename> | more
To find out which files (and for your purpose more important - pathes) belong to the package. Then check your environment. You need several variables set:
"PATH" should include the bin-dir of your Java installation, something like "PATH=[...]:/usr/java6_64/jre/bin:[....]".
"JAVA_HOME" should point the root directory of the package, something like "/usr/java6_64/jre"
"LIBPATH" and "LD_LIBRARY_PATH" are in the same format as "PATH" (a colon-separated list of directories) and should both include the path to the Java libraries, which are located in either "$JAVA_HOME/bin" or "$JAVA_HOME/lib".
You can set these variables in your "~/.kshrc" file but i suggest to put them into the environment of any user (perhaps every user should be able to use Java) by placing these definitions in "/etc/environment".