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

Error: A JNI error on Arch Linux #225

Open
shini-tm opened this issue Oct 8, 2019 · 0 comments
Open

Error: A JNI error on Arch Linux #225

shini-tm opened this issue Oct 8, 2019 · 0 comments

Comments

@shini-tm
Copy link

shini-tm commented Oct 8, 2019

As arch linux uses pacman instead of app-get, I manually installed jdk8 and maven 3.6.2-1. compiled and attempted to run start_bayou.sh & getting the error:

(venv) [shini@Loki-I build_scripts]$ cd out/
(venv) [shini@Loki-I out]$ ./start_bayou.sh &
[1] 37547
(venv) [shini@Loki-I out]$ Traceback (most recent call last):
  File "/home/shini/GitHub/bayou/bayou/tool_files/build_scripts/out/python/bayou/server/ast_server.py", line 20, in <module>
    from flask import request, Response, Flask
ModuleNotFoundError: No module named 'flask'
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.AbstractMethodError: java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(Ljava/util/jar/JarFile;)V
        at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:991)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:450)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
^C
[1]+  Done                    ./start_bayou.sh

After pip installing flash, get the same ModuleNotFoundError with tensorflow, after pip installing tensorflow, get the same error with n1tk, after that I get same error with the tensorflow.contrib which can't be pip installed.

(venv) [shini@Loki-I out]$ Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.AbstractMethodError: java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(Ljava/util/jar/JarFile;)V
        at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:991)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:450)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
Traceback (most recent call last):
  File "/home/shini/GitHub/bayou/bayou/tool_files/build_scripts/out/python/bayou/server/ast_server.py", line 24, in <module>
    import bayou.models.core.infer
  File "/home/shini/GitHub/bayou/bayou/tool_files/build_scripts/out/python/bayou/models/core/infer.py", line 23, in <module>
    from bayou.models.core.model import Model


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