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

前端 未结 5 1227
花落未央
花落未央 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:59

    This worked for me:

    For x86:

    export LD_LIBRARY_PATH=/usr/lib/jvm/default-java/jre/lib/i386:/usr/lib/jvm/default-java/jre/lib/i386/server
    

    For x86_64

    export LD_LIBRARY_PATH=/usr/lib/jvm/default-java/jre/lib/amd64:/usr/lib/jvm/default-java/jre/lib/amd64/server
    

提交回复
热议问题