Selfbot icon indicating copy to clipboard operation
Selfbot copied to clipboard

Error message when starting

Open tandpfun opened this issue 7 years ago • 10 comments

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)

tandpfun avatar Jan 31 '18 15:01 tandpfun

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

jagrosh avatar Jan 31 '18 15:01 jagrosh

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 avatar Jan 31 '18 23:01 tandpfun

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

tandpfun avatar Feb 01 '18 00:02 tandpfun

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)

tandpfun avatar Feb 01 '18 00:02 tandpfun

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.

spotlightishere avatar Feb 01 '18 00:02 spotlightishere

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

tandpfun avatar Feb 01 '18 00:02 tandpfun

how do u uninstall it?

tandpfun avatar Feb 01 '18 00:02 tandpfun

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

spotlightishere avatar Feb 01 '18 00:02 spotlightishere

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

tandpfun avatar Feb 01 '18 00:02 tandpfun

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.

spotlightishere avatar Feb 01 '18 01:02 spotlightishere