Hello World

1、官方建议在Unix-Like操作系统下进行开发部署
2、export play路径
sudo gedit /etc/profile

在里面加入Play!的路径, 此路径最好不要含空格等特殊字符
export PATH="$PATH:/XXX/play" 

注销重登录
3、切换到要建立新工程的目录,假设范例工程名字为playboy,执行
play new playboy

4、自动生成eclipse的配置, 可以在eclipse中import project
play eclipsify playboy

官方有这样的说明:
Use eclipsify again when you want to update eclipse configuration files.
~ However, it's often better to delete and re-import the project into your workspace since eclipse keeps dirty caches...
如果是netbeans, 执行
play netbeansify playboy


注意: 自动生成的eclipse配置, 不会把 /conf 添加为source folder,需要手工在eclipse中添加, 否则在java视图中看不到这个folder

5、在Eclipse里,手工把 conf 这个目录设置成source folder

你可能感兴趣的:(java,eclipse,unix,Netbeans)