Luc14860 / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
0 stars 0 forks source link

CentOS Server Error - Won't Start - Check for Java Version 1.6+ #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I am attempting to setup the server on a CentOS5 server, hosted at godaddy. I 
have root access.

I am a bit confused on how this works.  Your tutorial says that the 
jWebSocketServer<version>.jar file should be in the /bin/ folder, but I found 
it in the /libs/ folder.

When I go to run that .jar, I get the following error:

[root@******************* jWebSocket-0.10]# java -jar 
libs/jWebSocketServer-0.10.jar
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:620)
    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:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[root@ip-208-109-210-238 jWebSocket-0.10]# 

If you can't help me, thats ok, I figure this information will help with 
debugging / etc. Sorry if I'm being a noob, I am a PHP Web Developer, not java, 
or linux, really, just dabble in linux.     =P

Thank you,
-Aaron Peloquin
Web Scripting Engineer

Original issue reported on code.google.com by peloquin...@gmail.com on 7 Oct 2010 at 7:42

GoogleCodeExporter commented 9 years ago
"Bad Version Number..." lets me assume that you are using Java JRE or Java JDK 
< 1.6. Please check with java --version, if needed install Java 1.6.x and you 
should be fine. If this is not the issue please post your findings to our forum 
first. Thanks, Alex

Original comment by fivefeetfurther@gmail.com on 11 Oct 2010 at 12:16

GoogleCodeExporter commented 9 years ago
It was my java.  When I did "yum install java", it said I was up to date with 
1.6, but if I ran "java -version" it was saying I was running 1.5, so I did yum 
remove java, yum install java, and then its started booting now.

You can flag this as resolved.

Many thanks,
-Aaron

Original comment by aaron...@gmail.com on 11 Oct 2010 at 4:52

GoogleCodeExporter commented 9 years ago
Developers: We should to try to find a way to more comprehensibly show an 
outdated java version to the user other that just the exception Aaron noticed.

Original comment by fivefeetfurther@gmail.com on 14 Oct 2010 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by fivefeetfurther@gmail.com on 15 Oct 2010 at 5:08