Setting Up Working Environment for Java CoG Kit Developers
From Java CoG Kit
Contents |
JAVA Installation
Installing Java Development Kit for Windows
- Download the JAVA Development kit on your computer.
- On download page, select the link Download JDK 5.0 Update <version> (e.g. Update 7) for JDK 1.5 installation.
- On the subsequent page, you must accept the liscence agreement, and then select the link to the file named jdk-1_5_0_<version>-windows-i586-p.exe for Windows installation.
- Once the setup file is downloaded, run the setup by simply double clicking on it's icon.
- The setup wizard shall now guide you through the installation. For ease of usage later, you may install the JDK in preferable directory like C:\java\jdk1.5
- For a more detailed documentation, please refer to JDK Installation Notes
Apache ANT Installation
Installing Apache Ant for Windows
- Download Apache Ant on your system. Although the Binary distributions of Ant are available, we prefered to build Ant from it's Source distributions.
- If you preferred to use the pre-built version(binary distribution) of ANT, and have installed it into a favourable folder such as C:\antbuilt, u may skip to Step 9 and set the environment variables on your system. To build Ant follow the following steps:-
- Once you have downloaded the source version in tar.gz or the .zip format, decompress it to install. (It becomes simpler later if you decompress the file, target directory being C:\ant)
- You should have JDk installed on your system to build Ant. (Refer to Java Installation section on this page)
- Run the command promt on your system. That is, on the start menu Start Menu>Run , type "command" and the DOS prompt opens
- Suppose you have JAVA installed in the directory C:\java\jdk1.5, set the JAVA_HOME environment variable on your system:
set JAVA_HOME=C:\java\jdk1.5
- Now, enter into the directory where you installed the Ant source. In this case, it is C:\ant
cd C:\ant
- You may now build Ant easily. Suppose you want to build Ant into the directory C:\antbuilt, this can be done by typing the following command:
build -Ddist.dir=C:\antbuilt dist
- It would be a good practice to now set the ANT_HOME and PATH variables on your sytem:
a) set ANT_HOME=C:\antbuilt
b) set PATH=%PATH%;%ANT_HOME%\bin
NOTE:You may alternatively set your environment variables from the Control Panel aswell: Control Panel->Systems->Advanced->Environment Variables. Here add the apropiate path to the PATH variable. Similarly you can add the JAVA_HOME, ANT_HOME variables also.
- For more detailed documentation, please refer to Apache Ant User Manual
COG Kit Installation
Installing JAVA COG Kit on Windows Platform
- Download the Java COG Kit on your computer.
- Fill up the information in the form that appears on the download page. Although the kit is free, this information is critical to the developers as an indication to what puposes it is being used.
- Select JAVA COG Kit 4 from the menu "Software". Click on Submit
- On the succeeding page that opens up, search for the SVN link. You would then be able to checkout the latest kit version available (You may use TortoiseSVN for this purpose).
- We recommend that you install in WIndows the CoG Kit in a directory C:/cog
- You should have Apache ANT already built and JDK installed (you may refer to Ant Installation and Java Installation sections on this page under the "Documentation" section)
- Once you have made sure that step 1 through 6 are complete, you are ready to install the COG kit.
- Run the command prompt on your system. That is, on the start menu Start Menu>Run , type "command" and the DOS prompt opens
- Suppose you have JAVA installed in the directory C:\java\jdk1.5 and ANT built in the directory C:\antbuilt . You next need to type the following commands on the DOS prompt
a) set ANT_HOME=C:\antbuilt
b) set JAVA_HOME=C:\java\jdk1.5
c) set PATH=%PATH%;%ANT_HOME%\bin (or alternatively set PATH=C:\antbuilt\bin if variable PATH is not already set on your system)
d) set (this is to check that the last commands have resulted in the desired changes, if they have, then you should see the following)
ANT_HOME=C:\antbuilt
JAVA_HOME=C:\java\jdk1.5
PATH=C:\antbuilt\bin
- Now, enter into the directory where you installed the COG kit source. In this case, it is C:\cog.
cd C:\cog
- Here, type the command:
ant dist
This will build COG (from the build.xml file already present in the directory C:\cog) - Once the built is complete, go to the directory C:\cog\dist\bin from the command prompt and type the following
cog-info
cog-setup
NOTE: If an error occurs despite everything being correct, exit DOS and launch again, reset your environment variables and return to this step - COG kit setup will start. You must agree to the license
- Next, enter the details and send the registration details, click next and select "start a new configuration" (for first time install)
- User Certification step maybe skipped.
- Next comes the Private key which can be selected from <default_directory>\.globus\cogreg.txt.
- Certification Authorities (CAs) be selected from the Pre-defined CAs
- The subsequent steps are simple as the default setting are to be used.
- Finally click on Finish. Successful setup of COG kit shall save file cog.properties in .globus folder as described earlier.
Tortoise SVN Installation
Installing TortoiseSVN for Windows
- Download the TortoiseSVN client on your computer.
- Run the setup and install TortoiseSVN in any preferable directory.
- Information about accessing the Subversion repository may be found in Sourceforge.net document titled "Subversion (Version Control for Source Code)".
- Full reference materials also exist, with extensive detail on how to use SVN. It is recommended that users read Version Control with Subversion
Editing Wiki Pages
- For help and tips on editing and formatting the Wiki Pages, you can visit - Wikipedia : How to Edit a Page
