简体   繁体   English

播放框架不是有效的ID

[英]play framework not a valid id

When starting play framework 2, i seem not to be able to run an application that is newly created. 启动播放框架2时,我似乎无法运行新创建的应用程序。 I use jdk7u45 on a w7 64bit machine. 我在w7 64位计算机上使用jdk7u45。

C:\dev\play\play-2.0\workspace>play new yabe
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.0, http://www.playframework.org

The new application will be created in C:\dev\play\play-2.0\workspace\yabe

What is the application name?
> yabe

Which template do you want to use for this new application?

  1 - Create a simple Scala application
  2 - Create a simple Java application
  3 - Create an empty project

> 1

OK, application yabe is created.

Have fun!


C:\dev\play\play-2.0\workspace>cd yabe

C:\dev\play\play-2.0\workspace\yabe>play yabe
[info] Loading project definition from C:\dev\play\play-2.0\workspace\yabe\project
[info] Set current project to yabe (in build file:/C:/dev/play/play-2.0/workspace/yabe/)
[error] Not a valid command: yabe (similar: about)
[error] Expected '/'
[error] Not a valid configuration: yabe
[error] Not a valid key: yabe (similar: name, stage, state)
[error] yabe
[error]     ^

C:\dev\play\play-2.0\workspace\yabe>

I tried all options, option 1, 2, 3 and nothing [directly enter]. 我尝试了所有选项,选项1、2、3,什么也没有[直接输入]。 Same error message as always, and localhost:9000 does not do anything (localhost:80 nothing either so nothing is running there). 错误消息一如既往,并且localhost:9000不执行任何操作(localhost:80也不执行任何操作,因此没有任何运行)。

Also

C:\dev\play\play-2.0\samples\java\helloworld>play helloworld

same error. 同样的错误。

OK if i just type play in the helloworld, i get the following and also localhost:9000 shows nothing 好吧,如果我只是在helloworld中键入play,我得到以下信息,并且localhost:9000也什么也没显示

C:\\dev\\play\\play-2.0\\samples\\java\\helloworld>play [info] Loading project definition from C:\\dev\\play\\play-2.0\\samples\\java\\helloworld\\project [info] Set current project to helloworld (in build file:/C:/dev/play/play-2.0/samples/java/helloworld/) _ _ _ __ | C:\\ dev \\ play \\ play-2.0 \\ samples \\ java \\ helloworld>播放[info]从C:\\ dev \\ play \\ play-2.0 \\ samples \\ java \\ helloworld \\ project加载项目定义[info]将当前项目设置为helloworld(在构建文件中:/ C:/dev/play/play-2.0/samples/java/helloworld/)_ _ __ | | | __ _ _ | __ _ _ | | | | | ' \\| ' \\ | |/ ' | | / '| || || | | | | | | /| / | |_ |__ ( ) | | _ | __( )| | | |__/ | __ /

play! 玩! 2.0, http://www.playframework.org 2.0, http://www.playframework.org

Type "help play" or "license" for more information. 键入“帮助播放”或“许可证”以获取更多信息。 Type "exit" or use Ctrl+D to leave this console. 键入“退出”或使用Ctrl + D退出此控制台。

[helloworld] $ [helloworld] $

Any ideas how to make it work or at least how to pinpoint the issue? 有什么想法使它起作用或至少如何查明问题吗?

Play's console hasn't such commands like yabe or helloworld Play的控制台没有yabehelloworld这样的命令

after cd to project use play - you'll get into the console so you can check with help command to check what are valid commands available... cd到项目中使用play -您将进入控制台,以便可以使用help命令检查哪些有效命令可用...

Or just use play run ... 或者只是使用play run ...

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

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