To .Net developers (including me), Java is the devil. It is complex, not user friendly and there are endless config files to deal with. We are use to nice GUI’s and IDEs that “do it for you”.
So, when I was assigned a DD4T 2.0 Java project, with SDL Web 8, my gut reaction was… run away!!! Once they’d talked me out from the desk I was hiding under, and I could avoid it no longer, I got cracking.
Also, before getting into the weeds of it, a big thanks to Raimond Kempees! He got me over a few speed bumps on the way
So here’s step 1 – Getting an environment setup, and something building and debug-able
- Install Java JDK (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Install Tomcat (https://tomcat.apache.org/download-80.cgi) – you will need this to host and debug locally
- Run Tomcat Monitor
- Set startup to “manual”
- Stop the service (if started), we’ll attach to it later from Eclipse
- Install Maven (https://maven.apache.org/download.cgi) – you will need this to add some JARs not available on Maven Central
- Add Maven bin directory path to Path Environment Variable
- Open command prompt and test “mvn” is recognized command (you will see error)
- Install Eclipse (yes it would be way easier with IntelliJ, but who needs easy…)
- Download SourceTree (https://www.sourcetreeapp.com) and/or install GIT on the command line (https://git-scm.com)
That’s it, the environment is ready.
On to Step 2 & 3