GTranslate

English French German Italian Portuguese Russian Spanish
PrimeDesktop - Source Code SVN import and setup PDF Print E-mail
Written by Bahram Malaekeh   
Sunday, 24 April 2011 12:57

PrimeDesktop - Source Code SVN import and setup

 

This article is a step by step guide to importing and setting up the source code for PrimeDesktop and PrimeLibrary.

It assumes that you have a functioning Eclipse already setup and working.
It will go through Subclipse (SVN plugin for Eclipse) setup, PrimeLibrary import and configuration, PrimeDesktop import and configuration.

 

 

The video below shows how it is done. 


 

Step 1: Install Subclipse.

Subclipse is the SVN client plugin for Eclipse. This should be installed through Eclipse "Help" -> "Install New Software".
When you have opened the "Install New Software" window, you will have to add a new software location.
Name: Subclipse 1.6.x (Eclipse 3.2+) URL:  http://subclipse.tigris.org/update_1.6.x 

 

In the list that appears below you must expand "Subclipse" and the select only the ones that have "(Required)" at the end.
You must then go through the installation process. At the end of the installation you will have to restart Eclipse.

 

Step 2: Importing and setting up PrimeLibrary

After having installed Subclipse, you can checkout the PrimeLibrary.
(You should checkout PrimeLibrary first because PrimeDesktop uses PrimeLibrary as a functions library and will not work in any way if it is not present.)

 

Open the "New Project" and select "SVN" -> "Checkout project from SVN".
You will now be asked to select, or provide, a repository.
Select "Create a new repository location".

The address for the new repository is:
http://primenetworks.googlecode.com/svn/Prime/ 

Expand the "PrimeLibrary" folder, select "trunk" and press "Finished". (Or if you wish to select a previous version, you can open "Tags" and select an older version.)
A window will now ask you to select the type of project you want to create. Select "Java Project" and press "Next".
Type in the name you wish to give the project and press "Finished". (You can also just use "PrimeLibrary" for simplicity.)

Now you have to Setup the project with the correct libraries in the project settings.
Right click on the newly created project ("PrimeLibrary") and press "Properties" at the bottom.
Go into "Java Build Path" and then "Libraries". Press "Add JARs". Expand "PrimeLibrary" -> "lib".
Select all the files in the "lib" folder and press "Ok".
Press "Ok" to close "Properties".
Expand the "jUnitTests" folder in the source code view and open "AllTests.java".
Click on the error sign next to "Import..." and select "Fix project setup...". Press "Ok" when asked if you wish to import jUnit 4.

You have now finished setting up PrimeLibrary.

 

Step 3: Importing and setting up PrimeDesktop

At this point all that is left is to import and setup PrimeDesktop.

Open the "New Project" and select "SVN" -> "Checkout project from SVN".
Select the repository previously created and press "Next".

Expand the "PrimeDesktop" folder, select "trunk" and press "Finished". (Or if you wish to select a previous version, you can open "Tags" and select an older version.)
A window will now ask you to select the type of project you want to create. Select "Java Project" and press "Next".
Type in the name you wish to give the project and press "Finished". (You can also just use "PrimeDesktop" for simplicity.)

Now you have to Setup the project with the correct libraries in the project settings.
Right click on the newly created project ("PrimeDesktop") and press "Properties" at the bottom.
Go into "Java Build Path" and then "Libraries". Press "Add JARs". Expand "PrimeDesktop" -> "lib".
Select all the files in the "lib" folder and press "Ok".

Now you will have to add "PrimeLibrary" as a Project that "PrimeDesktop" is dependent on.
In the properties view, select "Projects" and press "Add". Find and select "PrimeLibrary" and press "Ok".

You now have to add the different language locales to the source code.
In the properties view, select "Source" and press "Add Folder". Expand "resource", select "locale" and press "Ok".

Press "Ok" to close "Properties".

You have now finished setting up PrimeDesktop.

 

Note: To test your setup, you can attempt to start PrimeDesktop by expanding "PrimeDesktop" -> "src" -> "graphics".
Right click on "PrimeMain.java", find "Run As" and then select "Java Application".

Last Updated on Monday, 25 April 2011 15:21