Skip to content

Error: A JNI error on Arch Linux #225

@shini-tm

Description

@shini-tm

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions