简体   繁体   中英

How do I set up Netbeans to work with Play Framework 2.0 easily

作为Netbeans用户,我如何以一种简单的方式在Netbeans中编辑我的Play 2.0应用程序,并且所有类都被识别并且没有用红色下划线显示?

Here is a much easier way.

  1. Download and Install Play Framework 2.0
  2. Into the command line:
    play new <application-name>
    cd <application-name>
    play eclipsify
  3. Open Netbeans
  4. From the netbeans menu, select: File > Import Project > Eclipse Project > Import project ignoring dependencies
  5. Copy and paste your project folder location the same into both text boxes

Tips:

  1. Do not compile, build, or anything between creating the project and importing it.
  2. In your play Controllers, Netbeans will not recognize your new views if the play server is not running. You can also the commandline and type: play compile to force the views to be compiled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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