yikuang / wave-protocol

Automatically exported from code.google.com/p/wave-protocol
0 stars 0 forks source link

Bad verison with java -jar (...) and run-server.sh #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ant
2. run-server.sh
3. java -jar dist/fedone-server-0.2.jar

What is the expected output? What do you see instead?
Some sign that it has started, got this instead:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad 
version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

What version of the product are you using? On what operating system?
Mac OS X, FedOne 0.2

Please provide any additional information below.
I saw that a person had sent in an issue with the same error output as 
mine while trying to run the run-server.sh file, and got a tip as to rather 
use "java -jar dist/fedone-0.2.tar", while the newest build doesnt have 
"fedone-0.2.jar" but rather "fedone-server-0.2.jar" I assume it is this one I 
am supposed to use.

Java is up-to-date with the newest version, and since I was able to compile 
with ant I assumed there wouldnt be a problem like this.

Original issue reported on code.google.com by c2aues...@gmail.com on 28 Oct 2009 at 4:48