Author Topic: Solarus editor can't run on OS X  (Read 2306 times)

Zus

  • Newbie
  • *
  • Posts: 2
    • View Profile
Solarus editor can't run on OS X
« on: July 13, 2014, 11:17:07 am »
Hello,

I'm tying to run Solarus quest editor v1.2 on OS X v10.9.4 

with command below:
$ java solarus-editor.jar
 

Exception in thread "main" java.lang.NoClassDefFoundError: solarus-editor/jar
Caused by: java.lang.ClassNotFoundException: solarus-editor.jar
   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   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)


Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
Re: Solarus editor can't run on OS X
« Reply #1 on: July 13, 2014, 12:41:47 pm »
To run a jar file, the command is:
java -jar solarus-editor.jar

Zus

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Solarus editor can't run on OS X
« Reply #2 on: July 14, 2014, 08:40:24 am »
Thanks for replay!

I have tried

$ java -jar solarus-editor.jar

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/solarus/editor/Editor : Unsupported major.minor version 51.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)

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
Re: Solarus editor can't run on OS X
« Reply #3 on: July 14, 2014, 02:29:58 pm »
You need Java 7, but you are using Java 6. So you have to install Java 7.