Version 5, last updated by Sachin Mittal at April 30, 2009 14:43 UTC

Downloading the software and testing it

Dowloading the source

Checkout the latest code from the svn.
This page can give you more information on how to:
http://www.assembla.com/spaces/java_tree/trac_subversion_tool

 

Compling the source and running a demo app (using ant)

We use ant build scripts to compile and build the application.
The latest version of ant can be installed from:
http://ant.apache.org/bindownload.cgi
The program has been built using ant 1.6.5, so this version should work fine for you. Please use the version later than 1.6.5

Steps to build from ant are:

  • copy file build.properties.example to build.properties in the same working directory.
    note*: the build.properties.example would be in the base directory in which you checked out the source.
  • modify the contents of the file build.properties, if needed. (The file is well commented to tell you what each property means.
  • Run the ant default target (this is everything). You would have to run:
    ant everything from the same directory where build.xml is using the command prompt.
  • The executable jars would be placed in $basedir/dist directory.
  • Click on the jar file to start playing with the small demo example

 

Building the source (using eclipse)

For carrying out the development we use eclipse IDE. Its open source, available free and very easy to use for rapid software development in Java.
In short it makes development lot easier.
So if you want to do active development on the project please download eclipse from:
http://www.eclipse.org/downloads/
We use eclipse version 3.2.2. So this version or any later version than this should work fine for you.

  • To import the project in eclipse open eclipse and choose the import existing projects into workspace option.
  • Browse to the base directory and click Finish to import.


Running a small example (using eclipse)

Once the project in imported all the class files are automatically compiled.

  • Under the project in eclipse go to base directory/example/Tree Demo.java and open with the inbuilt editor.
  • Go to Run > Run As on top and click the first option (Java Application). This would run this small demo as Java Swing Application.