Jump to content

Can't run on Linux


Asiirr

Recommended Posts

Here's the error code I get when I do java -jar

 

(precise)asir@localhost:~/Downloads$ java -jar 1.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/osbot/Boot : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: org.osbot.Boot. Program will exit.
 
Link to comment
Share on other sites

 

Here's the error code I get when I do java -jar

 

(precise)asir@localhost:~/Downloads$ java -jar 1.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/osbot/Boot : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: org.osbot.Boot. Program will exit.

 

What java version and update are you running?

Link to comment
Share on other sites

the latest grabbed from the ubunutu software center

 

also im on java 6 but also have java 7 installed

 

 

running precise 12.04

Having java x installed is different from using java x to run programs. OSBot requires java 8 in order to run, and as far as I know, all linux distributions have java 7 preinstalled. After installing java 8 you have make it uses that one generally through "alternatives --config java" command.

Edited by Token
Link to comment
Share on other sites

You need java 8.

smth like sudo apt-get install oracle-java8-installer

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

sudo apt-get install oracle-java8-set-default

 

need to do that

 

it's downloading rn so i'll let you know what happens

Having java x installed is different from using java x to run programs. OSBot requires java 8 in order to run, and as far as I know, all linux distributions have java 7 preinstalled. After installing java 8 you have make it uses that one generally through "alternatives --config java" command.

 

Yep that did it, thanks for the help

Edited by Asiirr
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...