Developing Secure Java Applications for Manning liveProject
The program was developed on Java version 1.8, so you should download the latest JRE (and JDK if you want to build) to make sure you can work with the program in Eclipse.
The program was developed and tested with Apache Tomcat 8.5. If you plan on deploying and testing the (not required for the project), make sure you have the latest version of Tomcat 8.5. The webapp was tested with a default Apache Tomcat and can simply be deployed by copying the target/ManningSecureCoding-0.0.1-SNAPSHOT.war file to the webapps directory under the Tomcat directory
- src/main/java - source code
- target/ManningSecureCoding-0.0.1-SNAPSHOT.war - compiled .war file to deploy to Tomcat (not required for the project)
- src/main/webapp - webapp (.war) file contents
Many Integrated Development Environment (IDE) tools are available for coding in Java, so pick the one you have used before. This project should open without major issues in IntelliJ IDEA or Eclipse EE IDE. Resource links are provided below if you are interested in learning the basic workflow of of using either IDE.
The project can be loaded directly using GIT:
- From the GIT web page, click 'Code', then copy the HTTPS URL
- In IntelliJ, chose 'Get from VCS'
- Paste the GIT URL into the 'URL'
- You can also download from GIT manually, then open the project by choosing the directory downloaded from GIT.
You will need the Java EE version of Eclipse to open the project. On the Eclipse download page, it is called 'Eclipse IDE for Enterprise Java Developers'
The project can be loaded directly using GIT:
- From the GIT web page, click 'Code', then copy the HTTPS URL
- In Eclipse, chose File, then Import
- Expand the Git option, and select 'Projects from Git'
- Select 'Clone URI'
- Paste the GIT URL into the 'URL'
- Leave all the default options
- You can also download from GIT manually, then open the project by choosing the directory downloaded from GIT.
- If the project complains about the JRE library, you can following these steps to fix the issue:
- Right-click the project and choose properties
- Go to Java Build Path
- Click the Libraries tab
- Click add Library
- Choose JRE System Library
- Select Workspace default
These are resources not referenced in the liveProject but may be helpful to further your understanding of the liveProject's content.
- IntelliJ IDEA Tutorial - (https://www.tutorialspoint.com/intellij_idea/)
- Eclipse IDE Tutorial - (https://www.tutorialspoint.com/eclipse/)
- Download Eclipse IDE for Enterprise Java Developers (https://www.eclipse.org/downloads/packages/)