Join Patrick Royal for an in-depth discussion in this video Using plugins for Eclipse, part of Using Java to Program Google App Engine.
- If you have any prior experience setting up a Java integrated development environment and programming in Java, then setting up the run time architecture for Google App Engine should be easy. The App Engine is designed for Java Enterprise edition, so any run time environment for Java EE will work. In this course I'll be working with the Eclipse IDE for Java EE developers, so it will be easiest to follow along if you use the same client. Eclipse is a free open-source platform for software development that's extremely popular due to its compatibility and array of different editing tools.
You can find it at the url shown. If you don't have one already, you'll also need a Java development kit. This can be downloaded from this url. Click on the link labeled JDK with the version number and release title afterwards. After clicking the link, accept the license agreement and choose the version of the JDK that is right for your computer. Once it's downloaded, simply run the file to install the Java development kit. All of the default install options are fine for our purposes. To download Eclipse, go back to the first url and then choose the package that you want.
The package that we're going to be downloading here is the Eclipse IDE for Java EE developers, which should be the first link under package solutions. Download the version that matches your computers, 32-bit or 64-bit, and Windows, Linux, or Mac. Eclipse will now download as a .zip file. Once it finishes downloading, go to wherever you saved the file and extract it to a convenient location. From here you can run Eclipse from the Eclipse.exe file.
The default work space is fine for our purposes, so I'll just click OK and open Eclipse. This development environment is what I'll be using for the remainder of this course, so let's take a moment to look at the layout. The central panel is the code panel, where you can write raw source code as well as editing a variety of different files, including xml files. On the left hand side, the project explorer holds a list of all the projects that I've been working on. This is where I can create new projects and class files. On the right hand side, the outline and task list provide a convenient way of summarizing the content that already exists and is planned to exist.
Finally, the bottom panel is where the output will appear when the program is run. It also contains a number of options for how and where the program will be run. The last thing we need to set up the run time architecture is the Google plug-in for Eclipse. You can get this from within your version of Eclipse. Go to the help drop down menu and choose install new software. You will be asked for a url to search for new plug-ins, so put in the url https, then download.google.com/eclipse/plugin, and then put in your version number.
In my case the version is 4.3. Once you add this url it will search and find all of the available plug-ins, including a Google plug-in for Eclipse. Select that and choose next. Then next again, then accept the terms and conditions, and click finish. The plug-in will now be installed in your integrated development environment. With that, Eclipse is fully set up for development using Google App Engine.
- Setting up Google App Engine accounts on Windows and Mac
- Creating a Google App Engine project
- Building the back-end code
- Creating the user interface
- Storing data
- Creating modules
- Testing and debugging
- Enabling security and encryption
- Working with extensions