Invalid Java installation: No version could be obtained
Hi ,
i am in mid of upgrading one of the java based application which requires higher version of java 1.8 from java 1.6, I have updated bash_profile and required environment variable correctly but still application unable to obtain the required version of java 1.8.
but still application unable to find the java version as per below error
Code:
Java Home Directory (Must point to Java 1.8 directory) (DEFAULT:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/): /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/
Java Home Directory (Must point to Java 1.8 directory):
Invalid Java installation: No version could be obtained
Please find the below directory structure :
Please find the below java directory structure
Code:
$cd /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/
java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64]$ls -lrt
total 50728
-rw-r--r-- 1 root root 51935439 Jan 16 2017 src.zip
drwxr-xr-x 4 root root 26 Feb 8 2017 jre
drwxr-xr-x 2 root root 4096 Feb 8 2017 bin
drwxr-xr-x 3 root root 125 Feb 8 2017 include
drwxr-xr-x 3 root root 135 Feb 8 2017 lib
drwxr-xr-x 2 root root 4096 Feb 8 2017 tapset
drwxr-xr-x 10 root root 125 Feb 8 2017 demo
drwxr-xr-x 11 root root 152 Feb 8 2017 sample
java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64]$cd bin/
ls -lrt
total 420
-rwxr-xr-x 1 root root 2806 Jan 16 2017 java-rmi.cgi
-rwxr-xr-x 1 root root 7384 Jan 16 2017 xjc
-rwxr-xr-x 1 root root 7392 Jan 16 2017 wsimport
-rwxr-xr-x 1 root root 7384 Jan 16 2017 wsgen
-rwxr-xr-x 1 root root 103424 Jan 16 2017 unpack200
-rwxr-xr-x 1 root root 7464 Jan 16 2017 tnameserv
-rwxr-xr-x 1 root root 7392 Jan 16 2017 servertool
-rwxr-xr-x 1 root root 7392 Jan 16 2017 serialver
-rwxr-xr-x 1 root root 7392 Jan 16 2017 schemagen
-rwxr-xr-x 1 root root 7392 Jan 16 2017 rmiregistry
-rwxr-xr-x 1 root root 7384 Jan 16 2017 rmid
-rwxr-xr-x 1 root root 7384 Jan 16 2017 rmic
-rwxr-xr-x 1 root root 7400 Jan 16 2017 policytool
-rwxr-xr-x 1 root root 7392 Jan 16 2017 pack200
-rwxr-xr-x 1 root root 7456 Jan 16 2017 orbd
-rwxr-xr-x 1 root root 7400 Jan 16 2017 native2ascii
-rwxr-xr-x 1 root root 7392 Jan 16 2017 keytool
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jstatd
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jstat
-rwxr-xr-x 1 root root 7456 Jan 16 2017 jstack
-rwxr-xr-x 1 root root 7408 Jan 16 2017 jsadebugd
-rwxr-xr-x 1 root root 7392 Jan 16 2017 jrunscript
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jps
-rwxr-xr-x 1 root root 7448 Jan 16 2017 jmap
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jjs
-rwxr-xr-x 1 root root 7448 Jan 16 2017 jinfo
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jhat
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jdeps
-rwxr-xr-x 1 root root 7400 Jan 16 2017 jdb
-rwxr-xr-x 1 root root 7408 Jan 16 2017 jconsole
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jcmd
-rwxr-xr-x 1 root root 7384 Jan 16 2017 javap
-rwxr-xr-x 1 root root 7384 Jan 16 2017 javah
-rwxr-xr-x 1 root root 7392 Jan 16 2017 javadoc
-rwxr-xr-x 1 root root 7384 Jan 16 2017 javac
-rwxr-xr-x 1 root root 7336 Jan 16 2017 java
-rwxr-xr-x 1 root root 7392 Jan 16 2017 jarsigner
-rwxr-xr-x 1 root root 7384 Jan 16 2017 jar
-rwxr-xr-x 1 root root 7384 Jan 16 2017 idlj
-rwxr-xr-x 1 root root 7392 Jan 16 2017 extcheck
-rwxr-xr-x 1 root root 7400 Jan 16 2017 appletviewer
$cd java
java javac javadoc javah javap java-rmi.cgi
anything else needs to setup, how application unable to find the java version though it is there.
Code:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/bin/java
bin]#pwd
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/bin
bin]#java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Check your application documentation to see where it expects to find Java.
Many Java applications expect Java to be located in a specific directory, for example '/usr/java', '/usr/bin/java', or wherever.
If you (for example):
Code:
# ls -l /usr/java
it will show you that this directory is symbolically linked to the actual Java directory, V1.6, V1.8, or whatever.
When you installed 1.8 the 1.6 directory was not removed so you have two versions to choose from. You might well need to change the link from the 1.6 directory to point to the 1.8 directory.
Many applications do not utilise $JAVA_HOME but expect to find Java in a specific directory. Find out from the application documentation what path that is.
---------- Post updated at 10:24 PM ---------- Previous update was at 10:19 PM ----------
Another thought is, does the application definitely need 64-bit Java or is it looking for 32-bit Java?
---------- Post updated at 10:25 PM ---------- Previous update was at 10:24 PM ----------
Perhaps you ought to post your hardware type, OS and version
Hi,
I have got jre 1.5 that I have got to install in the HP.UX version 11.31.
I managed to install it with this command :
# swinstall -s /tmp/<jre.XXXXX.depot>
It automatically gets created in /opt/java1.5/jre/bin.
However, now I am not sure how to set the PATH to JAVA_HOME, and path to... (1 Reply)
Hello, I'm trying to run a program that needs java 7, but java 6 is in the default folder and I don't have permission to change the /usr/bin/java folder and change the version.
I have java 7 downloaded in a different folder (~/java) and am wondering how I can use that version while running the... (1 Reply)
Hi,
I am trying to downgrade the version of rsyslog to the older version (i.e) and when i issue the below command to check the packages i dont see the required package (i.e)
and when i try to install it is complaining about package not found.
Please advise on how to install the... (1 Reply)
Hi,
I want to know what version of the java is installed?
Please let me know the command or process to identify the installed java version in sun solaris box.
Thanks in advance for all your support. (3 Replies)
hi
my box is a global zone with no local zones and the command java -version shows as "1.5.0_26".
now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to... (2 Replies)
Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1
a. Debian Squeeze (HP DL360). Need to use java version6
On Debian, I did apt-get install sun-java6-jdk. So when I check it's
java version "1.6.0_22"
Java(TM) SE... (1 Reply)
Hi Guys,
I am new here, Currently i am having a problem. below is the information to my problem
I have Java version 5 installed on my solaris box and currently there is a request to install java version 6 as well on the same box. Can i have 2 java running on the same box? If yes how do i... (1 Reply)
I have an issue here setting up ASR with a server.
In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5
I downloaded and installed 1.6
But when I did java -version , its still showing 1.5
I captured the below from another... (4 Replies)
Hi
When I say java -version, the following text is printed
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc))
Is there a way to echo Java version? (1 Reply)