powered by Jive Software

Don´t start in ubuntu 8.04

Hello all,

I need help, when start or stop openfire show the error:

Exception in thread “main” java.lang.NoClassDefFoundError: com/install4j/runtime/Launcher
Caused by: java.lang.ClassNotFoundException: com.install4j.runtime.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

I running java -version

java version "1.6.0_07"
Java™ SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot™ Client VM (build 10.0-b23, mixed mode, sharing)

Running dpkg -l | grep java

root@vsrv138:/opt/openfire/bin# dpkg -l | grep java
ii java-common 0.28ubuntu3 Base of all Java packages
ii sun-java6-bin 6-07-3ubuntu2 Sun Java™ Runtime Environment (JRE) 6 (ar
ii sun-java6-jre 6-07-3ubuntu2 Sun Java™ Runtime Environment (JRE) 6 (ar

root@vsrv138:/opt/openfire# sh -x /opt/openfire/bin/openfire start

  • pwd
  • old_pwd=/opt/openfire
  • basename /opt/openfire/bin/openfire
  • progname=openfire
  • dirname /opt/openfire/bin/openfire
  • linkdir=/opt/openfire/bin
  • cd /opt/openfire/bin
  • prg=openfire
  • [ -h openfire ]
  • dirname openfire
  • prg_dir=.
  • cd .
  • pwd
  • prg_dir=/opt/openfire/bin
  • app_home=…/
  • cd …/
  • pwd
  • app_home=/opt/openfire
  • bundled_jre_home=/opt/openfire/jre
  • [ __i4j_lang_restart = start ]
  • cd /opt/openfire/bin/.
  • [ ! __i4j_lang_restart = start ]
  • [ -f /opt/openfire/jre/lib/rt.jar.pack ]
  • [ -z ]
  • test_jvm
  • tested_jvm=na
  • test_dir=
  • bin_dir=/bin
  • java_exc=/bin/java
  • [ -z ]
  • return
  • [ -z ]
  • [ -f /opt/openfire/.install4j/pref_jre.cfg ]
  • [ -z ]
  • which java
  • path_java=/usr/bin/java
  • expr /usr/bin/java : (.*)/bin/java$
  • path_java_home=/usr
  • test_jvm /usr
  • tested_jvm=na
  • test_dir=/usr
  • bin_dir=/usr/bin
  • java_exc=/usr/bin/java
  • [ -z /usr ]
  • [ ! -d /usr/bin ]
  • [ ! -f /usr/bin/java ]
  • [ ! -x /usr/bin/java ]
  • tested_jvm=false
  • read_db_entry
  • [ -n ]
  • db_file=/root/.install4j
  • [ ! -f /root/.install4j ]
  • [ ! -x /usr/bin/java ]
  • found=1
  • exec
  • read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch
  • [ JRE_VERSION = JRE_VERSION ]
  • [ /usr = /usr ]
  • ver_major=1
  • ver_minor=6
  • ver_micro=0
  • ver_patch=07
  • found=0
  • break
  • exec
  • return 0
  • [ 1 = ]
  • [ 1 -lt 1 ]
  • [ 1 -eq 1 ]
  • [ 6 -lt 5 ]
  • [ 1 = ]
  • app_java_home=/usr
  • [ -z /usr ]
  • [ -z /usr ]
  • [ -z /usr ]
  • [ -z /usr ]
  • [ -z /usr ]
  • [ -z /usr ]
  • i4j_classpath=/opt/openfire/.install4j/i4jruntime.jar
  • local_classpath=
  • add_class_path /opt/openfire/.install4j/i4jruntime.jar
  • [ -n /opt/openfire/.install4j/i4jruntime.jar ]
  • expr /opt/openfire/.install4j/i4jruntime.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar
  • [ ! -d /opt/openfire/lib ]
  • ls /opt/openfire/lib
  • egrep .(jar$|zip$)
  • add_class_path /opt/openfire/lib/activation.jar
  • [ -n /opt/openfire/lib/activation.jar ]
  • expr /opt/openfire/lib/activation.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar
  • add_class_path /opt/openfire/lib/bouncycastle.jar
  • [ -n /opt/openfire/lib/bouncycastle.jar ]
  • expr /opt/openfire/lib/bouncycastle.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar
  • add_class_path /opt/openfire/lib/commons-el.jar
  • [ -n /opt/openfire/lib/commons-el.jar ]
  • expr /opt/openfire/lib/commons-el.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar
  • add_class_path /opt/openfire/lib/hsqldb.jar
  • [ -n /opt/openfire/lib/hsqldb.jar ]
  • expr /opt/openfire/lib/hsqldb.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar
  • add_class_path /opt/openfire/lib/jasper-compiler.jar
  • [ -n /opt/openfire/lib/jasper-compiler.jar ]
  • expr /opt/openfire/lib/jasper-compiler.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar
  • add_class_path /opt/openfire/lib/jasper-runtime.jar
  • [ -n /opt/openfire/lib/jasper-runtime.jar ]
  • expr /opt/openfire/lib/jasper-runtime.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar
  • add_class_path /opt/openfire/lib/jdic.jar
  • [ -n /opt/openfire/lib/jdic.jar ]
  • expr /opt/openfire/lib/jdic.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar
  • add_class_path /opt/openfire/lib/jtds.jar
  • [ -n /opt/openfire/lib/jtds.jar ]
  • expr /opt/openfire/lib/jtds.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar
  • add_class_path /opt/openfire/lib/mail.jar
  • [ -n /opt/openfire/lib/mail.jar ]
  • expr /opt/openfire/lib/mail.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar
  • add_class_path /opt/openfire/lib/mysql.jar
  • [ -n /opt/openfire/lib/mysql.jar ]
  • expr /opt/openfire/lib/mysql.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar
  • add_class_path /opt/openfire/lib/openfire.jar
  • [ -n /opt/openfire/lib/openfire.jar ]
  • expr /opt/openfire/lib/openfire.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.ja r
  • add_class_path /opt/openfire/lib/postgres.jar
  • [ -n /opt/openfire/lib/postgres.jar ]
  • expr /opt/openfire/lib/postgres.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.ja r:/opt/openfire/lib/postgres.jar
  • add_class_path /opt/openfire/lib/servlet.jar
  • [ -n /opt/openfire/lib/servlet.jar ]
  • expr /opt/openfire/lib/servlet.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.ja r:/opt/openfire/lib/postgres.jar:/opt/openfire/lib/servlet.jar
  • add_class_path /opt/openfire/lib/startup.jar
  • [ -n /opt/openfire/lib/startup.jar ]
  • expr /opt/openfire/lib/startup.jar : .**
  • [ 0 -eq 0 ]
  • local_classpath=/opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activ ation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/o pt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/l ib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt /openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.ja r:/opt/openfire/lib/postgres.jar:/opt/openfire/lib/servlet.jar:/opt/openfire/lib /startup.jar
  • vmoptions_val=
  • vmoptions_file=/opt/openfire/bin/openfire.vmoptions
  • [ -r /opt/openfire/bin/openfire.vmoptions ]
  • INSTALL4J_ADD_VM_PARAMS=
  • echo Starting openfire
    Starting openfire
  • nohup /usr/bin/java -server -Dinstall4j.jvmDir=/usr -Dexe4j.moduleName=/opt/openfire/bin/openfire -classpath /opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activation.jar:/opt/o penfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/opt/openfire/lib/ hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/lib/jasper-runtim e.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt/openfire/lib/ma il.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.jar:/opt/openfire/ lib/postgres.jar:/opt/openfire/lib/servlet.jar:/opt/openfire/lib/startup.jar com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false /opt/openfire/bin/…/logs/stderror.log /opt/openfire/bin/…/logs/stdoutt.log true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 3.5.1 20 40 Arial 0,0,0 8 500 -1 -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib
  • exit 0
    root@vsrv138:/opt/openfire# nohup: appending output to `nohup.out’