Java Tutorials

This Page has moved. Please go to the new location at Ideoplex.com.





I've been working in Java of late. One of the problems with Java is that you end up working with a bunch of tools from a bunch of places and it can be a bit tricky to get up to speed.

In keeping with the theme of Take the First Step, I've started working on some tutorials on Java Development Tools (the process is also an effective way of imprinting the information in my brain).

Ant | Hibernate

Ant
Writing an Ant Build File:
  Hello World
Ant tutorial on targets, target depends and the echo task.
Writing an Ant Build File:
  Java Hello World
Ant tutorial on the javac, jar and java tasks.
Writing an Ant Build File:
  Using Properties
Ant tutorial on the use of properties to specify work directories.
Writing an Ant Build File:
  Using JUnit Part 1
Ant tutorial showing a trivial junit task example with an explicit java classpath.
Writing an Ant Build File:
  Using JUnit Part 2
Ant tutorial showing control of JUnit exit status with multiple test cases.
Writing an Ant Build File:
  Conditional Execution
Ant tutorial showing the conditional execution of targets, includes the use of JUnit test status to optionally execute targets.
Writing an Ant Build File:
  Setting Properties
Ant tutorial on setting properties, introduces the available and condition tasks.
Writing an Ant Build File:
  Java System Properties
Demonstration of the sysproperty attribute of the Ant java task.
Hibernate
So you want to learn Hibernate A simple [and useless] console application using Hibernate. Presents a simple ant build file.
Controlling Hibernate output with Log4J A still simple [and useless] console application using Hibernate and Log4J. A property is used to direct hibernate log output to either System.out or a log file.
A Persistent Collection with Hibernate Simple application to create and retrieve a persistent collection.
Hibernate Prototyping with the BeanShell Using the BeanShell to interact with Hibernate.