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

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

    I had the same problem of setting the path(permanently) however I was using Red Hat, If you look change PATH permanently on Ubuntu it might help you. There was a file on Red Hat .profile that once you add your exports statements, they will get loaded when the computer starts. :) There should be the kind of file for ubuntu

    export     PATH="$PATH:/usr/lib/jvm/jdk1.7.0_25_x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
    

    export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_25_x64

提交回复
热议问题