A template starter for instantiating a plain java project, with Eclipse metadata
If instead you see the green 'Code' button then you are not signed in to github.
- You won't be confused by, and forced to use static methods and class variables that you don't yet understand.
- Easy to set up and get started
- Sets up some defaults to use as examples for getting started coding
- Perhaps more like the projects you will be using on the job
- Slightly different project than what the video lessons show
- More material here than you will initially need
- Shows unit test that you won't do until Assignment 7
- Create your project on github, not your local drive, by clicking the green template button
- Clone this down to your local drive in the appropriate workspace directory
- Import this project as an existing Eclipse project
- Start your coding in App.java's execute() method
ALWAYS rename your project from FIXME
, after importing! See troubleshooting below!!!!! (Right click, "Refactor" then "Rename")
ALWAYS search your project for the string literal FIXME
, and fix any as appropriate.
In Eclipse run App.java as a java app as you would any other app
In Eclipse run MyServiceTest as JUnit test
- A second project from this template will NOT import into a workspace if you didn't refactor the name of a previous. Hint: Look for a project in your workspace starting with the name
FIXME
and then rename that project. - If your Eclipse is not set up with Java 11, you may expect problems that require you to add a Java 11 JDK in order to resolve. PS you need to do this anyway - your code reviewer expects that regardless of what you use as your project starter.
Some example code is included in this project. Depending on your skill level,
- You may wish to delete it immediately if it is not helpful
- You may wish to leave it around for a while if it might be helpful
But if you hand this project in as an assignment, you probably want to delete anything that is not a part of the assignment.
- This project attempts to enforce a Java 11 version on the user. This is intentional, as this is a standard in the bootcamp.
- This project is like it's sibling project, which is virtually identical except for being a maven project import.
- Some teams prefer to gitignore the Eclipse metadata files (.project, .classpath) - but this would defeat this template's usage.
- This project will also import into IntelliJ