解决eclipse找不到jdk的方法:
在eclipse目录下新建jre目录,并连接jdk下的jre/bin目录到该目录下。
root@ubuntu:/home/xwdreamer/eclipse# mkdir jre
root@ubuntu:/home/xwdreamer/eclipse# ls
artifacts.xml configuration dropins eclipse eclipse.ini features icon.xpm jre notice.html p2 plugins readme
root@ubuntu:/home/xwdreamer/eclipse# cd jre/
root@ubuntu:/home/xwdreamer/eclipse/jre# ls
root@ubuntu:/home/xwdreamer/eclipse/jre# ln -s /usr/local/lib/jdk1.8.0_92/bin bin
root@ubuntu:/home/xwdreamer/eclipse/jre# ls
bin
root@ubuntu:/home/xwdreamer/eclipse/jre#
作者:xwdreamer