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

前端 未结 5 1229
花落未央
花落未央 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 15:05

    1. add the path of the missing libraries in the file /etc/ld.so.conf
    2. execute the following command: ldconfig this way, you'll add the new libraries to the default ones.
    3. To check whether the new libraries have been linked, execute the following command: ldconfig -p to have the list of libraries currently linked by default.

提交回复
热议问题