Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sl4j error #36

Open
cscvenkatmadurai opened this issue Dec 29, 2015 · 0 comments
Open

sl4j error #36

cscvenkatmadurai opened this issue Dec 29, 2015 · 0 comments

Comments

@cscvenkatmadurai
Copy link

Hi everyone
I am trying to compile word2vecExample.java file i got an error as stated below.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.apache.thrift.transport.TIOStreamTransport.(TIOStreamTransport.java:38)
at org.apache.thrift.TSerializer.(TSerializer.java:45)
at com.medallia.word2vec.util.ThriftUtils.serializeJson(ThriftUtils.java:16)
at com.medallia.word2vec.Word2VecExamples.demoWord(Word2VecExamples.java:73)
at com.medallia.word2vec.Word2VecExamples.main(Word2VecExamples.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 15 more

I downloaded slf4j-simple 1.7 jar from below link and added dependency in gradle file
http://mvnrepository.com/artifact/org.slf4j/slf4j-simple/1.7.13
Graddle file-
compile 'org.slf4j:slf4j-simple:1.7.13'

I recoompiled word2VecExample.java i got another error as described below.what is the way resolve the error

SLF4J: The requested version 1.6.99 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant