In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What is the installation guide for the Play Framework framework? for this question, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
prerequisite
To run the Play framework, you need Java5 or a newer JDK. If you want to build the Play framework from the source code, you need to use the Git source management client to get the source code and build it with Ant.
If you are using a MacOS system, Java is built in. If you are using Linux, make sure you are using Sun-JDK or OpenJDK (not gcj, as many Linux distributions default to gcj as the default Java environment). If you are using a Windows system, download and install the JDK package released by *.
Make sure the Java command is available under the current path (enter java-version check on the command line). The Play framework invokes the default Java command or the Java script in the path declared by the $JAVA_HOME environment variable.
Play's command-line tools are written in Python. So it should work on any UNIX system (but it must be Python 2.5 or higher). If you are a Windows system, don't worry, a working Python environment is already built into the framework.
Download binary package
Download the Play binary package of * * and extract it. For convenience, you should add the Play installation directory to the system's PATH environment variable. If you are in a UNIX environment, make sure the play script can be run (otherwise you can simply execute chmod + x play). That's all.
Prompt
If you need to rebuild the Play framework for some reason, execute the ant command in the $PLAY_HOME/framework directory.
Use the source code of * to build
To benefit from Play improvements and bug fixes, you may want to compile the Play framework directly from the source code. You will need a Git client to get the source code and use Ant to build the play framework.
Use the following command line:
# git clone git://github.com/playframework/play.git # cd play/framework # ant
This allows you to use Play.
Use the play command
When Play is installed correctly, open a shell and execute play.
$play
You will see the default message for play:
You can use play help any-command-name-here on any specific command to get more help on that command. For example, try:
# play help run
Create a new application
Use the new command to create a new application. You need to specify an application name with no duplicates in the current path for the new application.
# play new myApp
After you have created a new application, start the application using the following command:
# play run myApp
You can use your browser to access http://localhost:9000 and see the default page of the application.
The answer to the question about the installation guide of the Play Framework framework is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.