You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I tried running this programme to read an epub, which I put inside a new 'res' folder and got the following exception:
I'm using intelliJ IDEA for this.
The text was updated successfully, but these errors were encountered: