Java application dynamic configuration using a properties file

Sample screenshot
When I first started out in programming I made the same mistake as I see countless people make when starting.  I wrote code for me and that worked, and that was good enough for me.  As time passed and the code I produced expanded and became more ambitious so my bad habits became more ingrained.  I think it is something we all do; we all go through.  It is not until we encounter an issue, a reason to change, that we appreciate the error of our ways.  Continue reading “Java application dynamic configuration using a properties file”

Java application dynamic configuration using a properties file

A basic Application to get started – part 1

What is our code doing?

Now you may be thinking that we have just completed a basic application in the previous section and whilst that is true, that was all about proving our environment works.  Now we are going to assume our tools work and take a look at building our application.

As any experienced developer will tell you, when things go wrong with your application, it’s too late to wish you had some information to tell you what is going on; develop a strategy for capturing what your application is doing behind the scenes and implement it throughout your code.

For this application we are going to use a log file to write out what’s going on, more specifically we are going to use Log4J that we downloaded earlier. Continue reading “A basic Application to get started – part 1”

A basic Application to get started – part 1

Testing our Environment – part 5

Having tested our code in Eclipse and proved it works there we now need export our code to the file system.

To get our code out of Eclipse we will export the files from Eclipse to our file system. Continue reading “Testing our Environment – part 5”

Testing our Environment – part 5