powered by Jive Software

Spark compile&run problem

I can’t seem to figure out what i have to do to compile Spark correctly, and then run it… maybe someone can describe a few easy steps for me…

i checked out Spark from SVN, compiled it with “ant release” … and when i try to run it … i get this:

trantor:/usr/projects/spark/target/build/bin # ./startup.sh

…java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:168)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)

at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)

at org.jivesoftware.launcher.Startup.unpackArchives(Startup.java:149)

at org.jivesoftware.launcher.Startup.start(Startup.java:61)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

.java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:168)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)

at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)

at org.jivesoftware.launcher.Startup.unpackArchives(Startup.java:149)

at org.jivesoftware.launcher.Startup.start(Startup.java:64)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

.java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:168)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)

at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)

at org.jivesoftware.launcher.Startup.unpackArchives(Startup.java:149)

at org.jivesoftware.launcher.Startup.start(Startup.java:64)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

.java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:168)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)

at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)

at org.jivesoftware.launcher.Startup.unpackArchives(Startup.java:149)

at org.jivesoftware.launcher.Startup.start(Startup.java:64)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

.java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:168)

at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)

at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)

at org.jivesoftware.launcher.Startup.unpackArchives(Startup.java:149)

at org.jivesoftware.launcher.Startup.start(Startup.java:64)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

java.lang.ClassNotFoundException: org.jivesoftware.Spark

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 java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at org.jivesoftware.launcher.Startup.start(Startup.java:72)

at org.jivesoftware.launcher.Startup.main(Startup.java:33)

ERROR: transport error 202: bind failed: Address already in use

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)

trantor:/usr/projects/spark/target/build/bin #

maybe someone can give me an idea …

Thanks

PS: and when i try to run it from /spark/target/classes, i get :

trantor:/usr/projects/spark/target/classes # ./startup.sh

Exception in thread “main” java.lang.NoClassDefFoundError: org/jivesoftware/launcher/Startup

ERROR: transport error 202: bind failed: Address already in use

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)

What version of java are you using? It look’s like you are running 1.5 but compiled the application with 1.6, just guessing as I am not a java guru.