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

Exception when running a basic programme to read an epub. #119

Open
Reizenchuu opened this issue Dec 3, 2018 · 0 comments
Open

Exception when running a basic programme to read an epub. #119

Reizenchuu opened this issue Dec 3, 2018 · 0 comments

Comments

@Reizenchuu
Copy link

Reizenchuu commented Dec 3, 2018

       EpubReader epubReader = new EpubReader();
       try {
           Book book = epubReader.readEpub(new FileInputStream("res/overlord.epub"));
       } catch (IOException e) {
           e.printStackTrace();
       }
   }
 }`

I tried running this programme to read an epub, which I put inside a new 'res' folder and got the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: android/util/Log
at org.slf4j.impl.AndroidLoggerFactory.getLogger(AndroidLoggerFactory.java:69)
at org.slf4j.impl.AndroidLoggerFactory.getLogger(AndroidLoggerFactory.java:44)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
at nl.siegmann.epublib.epub.EpubReader.(EpubReader.java:33)
at pac.nyanpas.main(nyanpas.java:14)
Caused by: java.lang.ClassNotFoundException: android.util.Log
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 6 more

I'm using intelliJ IDEA for this.

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

No branches or pull requests

1 participant