Beh01der / EasyFlow

EasyFlow - Simple and lightweight Finite State Machine for Java
http://datasymphony.com.au/open-source/easyflow
Apache License 2.0
445 stars 86 forks source link

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory #6

Closed teotigraphix closed 11 years ago

teotigraphix commented 11 years ago

Hi, I'm using the jar in a very simple test app in plain java and get the following exception. Any advice? I don't see this class in the jar anywhere.

Thanks, Mike

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
    at au.com.ds.ef.FlowBuilder.<clinit>(FlowBuilder.java:7)
teotigraphix commented 11 years ago

Sorry about this, it was early and I was reading the logging class as your own custom implementation not a library. So I managed to download the correct jar to get a minimal sample running.

Is there anywhere you tell devs they need this dependency? I am using this library since its lightweight, so having to get this logger was a bit more than I thought I would have to do with just using the jar.

Mike

TypeOverride commented 10 years ago

I have the same Exception. I use Libgdx.

Is the Logger a dependency of EasyFlow? And when yes, why?

Ah, i found this: http://datasymphony.com.au/open-source/easyflow/#comment-679

Is the dependency of a logger really necessary? I am always for lightweight and dont try to have more than one Logger in my project.