遵循libgdx教程之后,我创建了一个Gradle项目,该项目可以在台式PC上正常运行,但无法在笔记本电脑上启动Java。
我的两台机器都在带有GNOME Shell 3.18.3和Java 1.8.0_66 OpenJDK的Arch Linux 4.3.3-2上使用Gradle 2.10。
这是我在笔记本电脑上遇到的错误:
$ gradle desktop:run Configuration on demand is an incubating feature. :core:compileJava UP-TO-DATE :core:processResources UP-TO-DATE :core:classes UP-TO-DATE :core:jar UP-TO-DATE :desktop:compileJava UP-TO-DATE :desktop:processResources UP-TO-DATE :desktop:classes UP-TO-DATE :desktop:run FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':desktop:run'. > A problem occurred starting process 'command '/usr/lib/jvm/java-8-openjdk/bin/java''
该文件/usr/lib/jvm/java-8-openjdk/bin/java
存在,具有所有用户的所有必需权限,并且可以手动执行而不会出现问题。