简体   繁体   English

在eclipse中成功构建gradle之后,Java应用程序无法启动

[英]Java app does not start after successful gradle build in eclipse

Simple java libgdx hello world builds sucecssful with gradle(new to gradle) build tool from eclipse, but it does not start. 简单的java libgdx hello world使用eclipse的gradle(gradle新增功能)构建工具来构建成功,但是它没有启动。 Ie I get ton of green buttons in graddle executions tab, and BUILD SUCCESSFUL in console tab. 即我在gradle的执行选项卡中获得了大量的绿色按钮,而在控制台选项卡中获得了BUILD SUCCESSFUL。 I cant find any errors that something went wrong and application could not start or any runtime errors. 我找不到任何出错的错误,并且应用程序无法启动或任何运行时错误。 Nothing. 没有。 All instructions Ive been able to find on internets only tells how to build, none tells how to start the newly built application. 我在互联网上可以找到的所有说明仅告诉您如何构建,而没有告诉您如何启动新建的应用程序。

If your gradle build is successful and the build script is correct, then the jar or war file which is created as a part of packaging should be under < actualProjectFolder >/build/libs/< yourprojectartifactname >-< version >.jar. 如果gradle构建成功并且构建脚本正确,那么作为打包的一部分创建的jar或war文件应位于< ActualProjectFolder > / build / libs / < yourprojectartifactname >-< version > .jar下。 I think looking at contents of build folder should give you an idea on what could be wrong. 我认为查看build文件夹的内容应该可以使您了解什么是错误的。

谢谢,我终于成功了,它确实是在项目文件夹中进行gradle运行(在Windows上gradlew运行)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM