Oracle Apps DBA

My photo
More than 5+ Years of IT Experience in administering Enterprise wide Multi Vendor UNIX Servers, Oracle Databases (8i to 11gR2), Middle-tiers, Applications and Clusters. I am a Sun Certified System Administrator (SCSA) for Solaris 10, oracle 10g database certified associate(OCA), Oracle 10g Database certified professional (OCP) and Oracle E-Business suite R12 certified professionl(OCP)

Oracle Database and Applications

Sunday, 23 December 2012

java thread main java emcli EM12c

Error encountered while trying to extract emcli utility from EM 12c cloud control OMS Home:
[ora11g@monitorerp EMCLI]$ java -jar emclikit.jar client -install_dir=/u01/12c_Agent/EMCLI
Exception in thread "main" java.lang.ClassFormatError: oracle.sysman.emCLI.CLIInstallLaunch (unrecognized class file version)
   at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
   at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
   at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)

 
Cause:

Expected version of java executable is not exists in PATH variable.
 
Solution:

=> Set JDK 1.6_u30 in PATH vriable and rerun the command it should execute without any errors
=> If java 1.6_uxx is not preset in your OS then please download and install it. 
export PATH=/u01/sw_home/RPM_Home/java/jdk1.6.0_30/bin:/u01/HomeEM12c/12c_Home/oms/bin:/u01/HomeEM12c/12c_Home/oms/OPatch:$PATH

 
thanks,
X A H E E R


No comments: