linux下运行eclipse出错的解决方法

来源:岁月联盟 编辑:exp 时间:2012-03-31

我在vmware虚拟机上安装了linux系统,并成功地安装了jdk 现在可以运行自己编写的JAVA程序。 但是解压eclipse- jee-galileo-SR2-linux-gtk.tar文件之后运行eclipse却总是失败 它提示说JRE JDK没有安装好,总之就是那个PATH路径不正确。  还是把运行的错误信息贴出来吧。。。 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /home/wrm/Desktop/eclipse/jre/bin/java java in your current PATH  请教这该怎么办啊?! JDK安装是没问题的,可以用命令行运行JAVA程序的。  下载eclipse-jee-ganymede-linux-gtk.tar.gz 安装: 在拷贝eclipse-jee- ganymede-linux-gtk.tar.gz到/usr/soft/eclipse目录下,cd到该目录,执行: tar -zvxf eclipse-jee-ganymede-linux-gtk.tar.gz 在/usr/soft/eclipse下生成eclipse包,进入eclipse下,即/usr/soft/eclipse/eclipse下,执行./eclipse,将运行eclipse出错,提示:“no java virtual machine was found after searching the following locations:”  www.2cto.com   解决办法:  在debian中安装eclipse: 解压到某位置,此处为/usr/soft/eclipse/,运行eclipse时提示“no java virtual machine was found after searching the following locations:”。 原因是没找到jre,解决办法是,进入/usr/soft/eclipse/eclipse目录,建立软连接,连接到 jre, ln -s /usr/soft/java/jdk/jre jre username:/usr/soft/eclipse/eclipse# ln -s /usr/soft/java/jdk/jre jre    作者 niuxiaoxia870563296