4
如何创建.desktop文件以启动Eclipse?
当我创建一个.desktop文件以启动Eclipse(具有JDK 1.8支持的最新版本)时,出现以下错误: 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/dean/bin/eclipse-standard-luna-M5-linux-gtk-x86_64/eclipse/jre/bin/java java in your current PATH 为什么它试图在Eclipse二进制文件所在的目录下找到JRE? 我可以从命令行启动Eclipse,并且可以将其固定到启动器上并且可以运行。为什么.desktop文件对应该执行的操作如此困惑? 这是我的.desktop文件: [Desktop Entry] Version=1.0 Name=Eclipse JDK 1.8 Comment=Eclipse Exec=/home/dean/bin/eclipse-standard-luna-M5-linux-gtk-x86_64/eclipse/eclipse Icon=/home/dean/bin/eclipse-standard-luna-M5-linux-gtk-x86_64/eclipse/icon.xpm Terminal=false …