Grid Control (03)

Friday 23 May, 2008 - 10:40

Using Enterprise Manager Command Line Interface to install the Enterprise Manage CLI (emcli) on central .

(p.1-4) export JAVA_HOME=$(which java)

http://gridctrl:4889/em/console/emcli/download

The download is stored in ~/Desktop
$ cd ~/Desktop
$ mkdir ../emcli
$ java -jar cmlikit.jar client -install_dir=../emcli
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: cmlikit.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/home/oracle/Desktop/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/home/oracle/Desktop/java.version=1.4.2)

Not to despair! Open the JAR file and look at the META-INF/MANIFEST.MF to see what the main class is: oracle.sysman.emCLI.CLIInstallLaunch
$ java -cp emclikit.jar oracle.sysman.emCLI.CLIInstallLaunch client -install_dir=../emcli
Oracle Enterprise Manager 10g Release 10.2.0.0.0. Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.sysman.emCLI.verb.SetupVerb
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at oracle.sysman.emCLI.CLICSInstaller.installClientSide(java.io.File) (Unknown Source)
at oracle.sysman.emCLI.CLICSInstaller.main(java.lang.String[]) (Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.TrustManager not found in [file:../emcli/emCLI.jar, file:./emclikit.jar, file:/usr/share/java/libgcj-3.4.4.jar, file:./, file:./, core:/]
...
...4 more
Problem while installing.