JAVA HOME

来源:互联网 发布:软件开发工作总结范文 编辑:程序博客网 时间:2024/06/05 14:20
user@mobile-122:~$ rosrun re_comm runfind: `/jre/lib/': No such file or directoryCannot find libjsig ... maybe you need to set JAVA_HOME?


I had the exact same issue. I did the following to get it to work.
sudo add-apt-repository ppa:ferramroberto/javasudo apt-get updatesudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Hit TAB to get to Ok prompt. Ok to next screen as well.

When done, type 

java -version

to see that it is installedYou should be able to cd to the following path
/usr/lib/jvm/default-java/jre/lib

If that path exists then do the following

cd /etc

sudo vi bash.bashrc

go to the end of the follow, add the following, save and exit

export JAVA_HOME=/usr/lib/jvm/default-javaexport PATH=$PATH:$JAVA_HOME/binexport PATH


once you exit, confirm new JAVA_HOME is set by typing

echo $JAVA_HOME

If the path shows up, you are done.

In a new terminal run rosrun re_comm run