lawrancej / logisim

Git fork of Logisim code base
http://www.cburch.com/logisim/
GNU General Public License v3.0
211 stars 104 forks source link

Can't run .jar outside of gradlew run #84

Closed JesseTG closed 9 years ago

JesseTG commented 9 years ago

When I try, I'm given this error:

jesse@jtg-ubuntu:~/Code/Source/logisim/build/libs$ java -jar ./*.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
    at com.cburch.logisim.LogisimVersion.<clinit>(LogisimVersion.java:16)
    at com.cburch.logisim.Main.<clinit>(Main.java:35)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 2 more
jesse@jtg-ubuntu:~/Code/Source/logisim/build/libs$ 
mikespallino commented 9 years ago

This is because we don't currently pack the libraries into the jar file. I will start working on fixing this.

JesseTG commented 9 years ago

Isn't it supposed to be just a few lines in Gradle?

mikespallino commented 9 years ago

Yeah, I was in class though. I just pushed the fix to my repository.

JesseTG commented 9 years ago

Awesome, thanks! I'll leave this open until it's merged into upstream.

lawrancej commented 9 years ago

Thanks for the fix, too! :+1: