VMware Cloud Community
marcdevinci
Contributor
Contributor

Hyperic 4.2.0 install/upgrade failed

When I try to upgrade it, I obtain:

$ ./setup.sh -upgrade
Please ignore references to missing tools.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

I checked the PATH and I didn't see anything wrong:

ANT_HOME=/usr/local/hyperic-hq-installer/installer-4.2.0
ANT_OPTS= -Djava.net.preferIPv4Stack=true
JAVA_HOME=/usr/local/java
HQ_JAVA_HOME=/usr/local/java
INSTALL_MODE=upgrade
INSTALL_DIR=/usr/local/hyperic-hq-installer/installer-4.2.0

CLASSPATH is not set...

I use the JDK 1.5.0_22 on a 32bits machine.

Please help me !
Reply
0 Kudos
6 Replies
excowboy
Virtuoso
Virtuoso

Hi,

are you using a SUN JDK or OpenJDK ? Hyperic does not run with GNU Java. What is the output of
/usr/local/java/bin/java -version ??


Mirko
Reply
0 Kudos
marcdevinci
Contributor
Contributor

[root@majestix hyperic-hq-installer]# java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
Reply
0 Kudos
excowboy
Virtuoso
Virtuoso

Do you mean by PATH your environment variables ?

Which Hyperic HQ package did you download ? Did you download the one that comes with Postgres and a JRE ?

Cheers,
Mirko
marcdevinci
Contributor
Contributor

I downloaded and tried to install this package:
hyperic-hq-installer-4.2.0-1260-x86-linux.tgz

Sorry, I don't understand your question about PATH?
Reply
0 Kudos
jvalkeal_hyperi

First you could try to use bundled jre by removing JAVA_HOME system variable.

Also try to execute ant with debug flag. It might tell what is wrong. Also are you sure there are no access right problems? Like if you extracted the package as root and running it as non-root user...

./installer-4.2.0-EE/bin/ant --execdebug

Edit: You have community version, so check the path to ant

Message was edited by: jvalkeal
marcdevinci
Contributor
Contributor

Still don't know what the problem was. Perhaps also a problem with the archive!

Thus, I re-downloaded the linux archive, re-unpacked, and now it works!

Thanks all for your help!
Reply
0 Kudos