如何在Eclipse中运行一个Play项目 [英] How to run a Play project in Eclipse
问题描述
hello我一直在试图找到如何在eclipse中运行Java Play项目,但是找不到一个简单的方法。这是我已经完成的
hello I've been trying to find how to run a Java Play project in eclipse but I can't find an easy way. Here is what I've done
创建一个项目
play new testApp
转到文件夹
cd testApp
取消项目
play eclipsify
打开日食并导入为现有项目,但是我不知道如何从eclipse运行服务器
Open eclipse and import as an existing project, but then I don't know how to run the server from eclipse
注意:
I知道我可以在控制台中运行它。问题是我已经使用Eclipse添加了一个Eclispe项目到构建路径,所以如果我在控制台中运行它,我认为它不会工作,或者我错了?
NOTE: I know that I can run it in the console also. The problem is that I've added an Eclispe project to the buildpath using Eclipse so If I run it in the console I think it will not work, or am I wrong?
推荐答案
Play eclipsify为您创建一个运行配置。
Play eclipsify creates a run configuration for you.
运行 - >运行配置 - > Java应用程序 - > testApp
如果您需要调试,请首先按照说明运行应用程序,然后
If you need to debug first run the application as indicated then
运行 - >调试配置 - >远程Java应用程序 - >将JPDA连接到testApp
这篇关于如何在Eclipse中运行一个Play项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!