Trouble in Setting Java Environment Path on Ubuntu (libjvm.so: cannot open shared object file: No such file or directory)

前端 未结 5 1274
花落未央
花落未央 2021-01-21 14:35

Found the solution!

Ubuntu by default ignore the command \"RD_LIBRARY_PATH\" therefore I need to add those codes in \".bashrc\" instead of \"/etc/environment\" or .profi

5条回答
  •  耶瑟儿~
    2021-01-21 14:56

    Put "-Djava.library.path=FULL_PATH_HERE/jre/lib/amd64" as a JVM option in your C code.

    Edit the full_path_here part.

    The path is allowed to be relative, but I don't think you can use $JAVA_HOME as a placeholder for the environment variable.

提交回复
热议问题