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

Testing our Environment – part 1

Just to make sure we have everything up and working we will quickly create a small program just to prove the basics are in place.

Almost any programming course will start you off with a ‘Hello World’ app, so why should we be any different.

Now, I think I said right back at the beginning that this is not about learning the Java language and this is not about learning how to program, this is about using Java and our programming knowledge to build a desktop application in Java.   So that said the code presented here should not be a surprise to anyone; it’s a simple Class with a Main method that launches the application and will form the corner stone of everything we do going forward.

Testing our Environment – part 1

Installing JGoodies Forms and Binding

As JGoodies provides both the Bindings and Forms libraries we can download these both from the same site.

  • Open a browser and go to ‘http://www.jgoodies.com
  • Select ‘Download and choose ‘Java Libraries
  • From the list of java libraries select and download ‘JGoodies Forms’ and ‘JGoodies Bindings’.  For this program I will be using Forms 1.7.1 and bindings 2.9.1.
  • Open each package in turn, locate the Java ARchive (JAR) file (‘jgoodies-binding-2.9.1.jar’ and ‘jgoodies-forms-1.7.1.jar’) and copy these files.

We are going to place a copy of the JAR files into the ‘plugins’ directory of the Eclipse installation.  Locate where you installed Eclipse and find the subdirectory ‘plugins’.  Copy the JAR files into this directory.  This will make it easier when we come to add these into our program.

Installing JGoodies Forms and Binding

Installing Eclipse

Next download Eclipse
• Open a browser and go to ‘http://www.eclipse.org
• Click on ‘Download Eclipse’. The versions change over time, just go for the latest stable version.

Eclipse logo

  • Select ‘Eclipse IDE for Java Developers’ and pick the correct version for your operating system
  • Select a download host option, I usually go for the default in this case ‘[United Kingdom] UK Mirror Service (http)
  • If you have the means perhaps you might like to donate to Eclipse to help it continue to provide a world class IDE for you and others to come.
  • Once downloaded extract the contents of the ZIP file to a location of your choice.
  • Go to the location where you placed Eclipse and in the eclipse folder you will find a file called ‘eclipse.exe’.  Double click on the file to launch Eclipse.

Watch a video of the installation:

Installing Eclipse