I uninstalled the Open JDK and install the Java rpm downloaded from Oracle website. Also set the JAVA_HOME env. variable. It is still giving me the same error. Now I have..
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Setup script created a folder in /tmp and there is folder named /tmp/install.dir.18375/Linux/resource/jre . I don't know where the Setup script got that from... not sure what jre is this..
Thanks for your reply anyway.