- #Install play framework
- #Move to tmp folder
- cd /tmp
- #Download latest Typesafe Activator
- wget http://downloads.typesafe.com/typesafe-activator/1.2.10/typesafe-activator-1.2.10.zip
- #Unzip it
- unzip typesafe-activator-1.2.10.zip
- rm typesafe-activator-1.2.10.zip
- #Move unzip folder activator-1.2.10 to /opt
- mv activator-1.2.10 /opt
- #Create soft symbolic link from /opt/activator-1.2.10/activator to /usr/local/sbin/activator
- ln -s /opt/activator-1.2.10/activator /usr/local/sbin/activator
- #Try to run activator
- activator
- #see version
- activator --version
- #create a helloworld app
- #create new app using activator
- cd /usr/local/
- activator new my-first-app play-java
- #here we are using play-java template
- #run the helloworld app
- cd my-first-app/
- #you must go to the created project directory
- #run helloworld project
- activator run
- #browse to http://localhost:9000
- curl http://localhost:9000
- #See a page saying : 'Your new application is ready...Welcome to play! :)'
- #Development:
- #generate eclipse project files
- activator eclipse
- #cleaning
- #Do activator clean or
- activator clean-files
Getting started with playframework with java on CentOS
Labels:
centos,
java,
linux,
play-framework
No comments:
Post a Comment