Skip to content
This repository has been archived by the owner on Jun 15, 2018. It is now read-only.

Error message when starting #76

Open
tandpfun opened this issue Jan 31, 2018 · 10 comments
Open

Error message when starting #76

tandpfun opened this issue Jan 31, 2018 · 10 comments

Comments

@tandpfun
Copy link

tandpfun commented Jan 31, 2018

I downloaded the files, and I tried to rune the .command file, but it said "Permission Denied." I ran all the commands in the file manually, but it couldn't open the jar file. I then ran the java command with the directory of the file and got this error;
Exception in thread "main" java.lang.UnsupportedClassVersionError: jselfbot/JSelfBot : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

@jagrosh
Copy link
Owner

jagrosh commented Jan 31, 2018

Do you have JDK 1.8 installed (check with java -version)

@tandpfun
Copy link
Author

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

nope. How do you get it?

@tandpfun
Copy link
Author

tandpfun commented Feb 1, 2018

I figured it out, but I still got the same error.

@tandpfun
Copy link
Author

tandpfun commented Feb 1, 2018

Exception in thread "main" java.lang.UnsupportedClassVersionError: jselfbot/JSelfBot : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

@spotlightishere
Copy link
Contributor

Double check that java -version says version 1.8.0 or similar - if it doesn't, you're probably still using JDK 1.6.0. If you don't have any program using 1.6, you can probably uninstall that version.

@tandpfun
Copy link
Author

tandpfun commented Feb 1, 2018

i checked the version again, and it is old. IDK why it didn't update. I got it from the java.com website

@tandpfun
Copy link
Author

tandpfun commented Feb 1, 2018

how do u uninstall it?

@spotlightishere
Copy link
Contributor

Read https://java.com/en/download/help/uninstall_java.xml for some more information on that.

@tandpfun
Copy link
Author

tandpfun commented Feb 1, 2018

I can't sudo, is there any other way?

@spotlightishere
Copy link
Contributor

Ah, are you using something Linux? You'd want to use your package manager (i.e yum, apt) to uninstall Java from there.

It's probably best to search how to install JDK 1.8, for example in Ubuntu you may want to use webupd8team's PPA (see http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html for more information).

Without sudo, it's much harder to install and use. You may want to ask whoever manages the system to install that for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants