1. Download Eclipse SVN_Eclipse_at_home a. Go to: http://www.eclipse.org/downloads/ and select Eclipse IDE for Java Developers b. Select a mirror (which just means select which identical copy you should download. It doesn t really matter which one you choose, but it might be a bit faster if you choose one geographically near Berkeley.)
c. Save the file and extract the files. d. Once the file is downloaded and extracted, you should be able to click on eclipse.exe to run eclipse. You might want to make a shortcut to eclipse.exe on your desktop. e. When it asks you to select a workspace, click OK.
2. SVN (Subversion) The big idea! It isn t required that you use SVN, but we think it will make your life easier and you and your partner(s) will probably want to use it on later projects. a. In the Cloud (the internet) you have a folder where you can store all of your code. This is called a SVN Repository b. From your computer at home (left) and a computer at school (right) You can create files and add them to the cloud s folder. o Described in detail in this document You can make changes on your local copy and copy these to the repository (COMMIT) You can get files from the cloud (IMPORT) or get changes that have been added to the version in the repository (UPDATE)
3. Install Subclipse Open up eclipse to install SVN. The school computers have subclipse installed, but you will need to install it on your home computer. a. Within eclipse click: Help Software Updates b. The Software Updates and Add-ons window should pop-up. Click on the Available Software tab and then click Add Site c. The Add Site button should open a dialog box, where you can type the link below as the Location: http://subclipse.tigris.org/update_1.6.x
d. Hit OK. Your list of Available Software should be updated. Select the box for update_1.6.x and click install.
e. It will calculate a list of dependencies. Click Next and you will be given the opportunity to review the license agreements.
f. Click accept and then click Finish g. Once you ve finished the installation, it will ask you to restart Eclipse. Click Yes.
4. Adding a Project a. Right-Click on the project that you want to be able to view from another computer. b. From the menu select Team Share Project.
c. In the pop-up box, select SVN and click Next > d. Type in this link as the Url where you replace xx with the last two letters of your login; then click Finish. https://isvn.eecs.berkeley.edu/cs61bl/xx
e. Next it will complain about validating the certificate. You should click Accept Permanently. f. In the dialog box that pops-up, type in your unix username and password. We recommend that you click Save Password. Click OK g. Just like you probably have the Debug perspective open up when you debug in Java, we recommend that you click Yes and Remember my decision.
h. Now in the Synchronize View you should see your project that you right clicked on. Next to all of the files in that project you should see this icon:
i. Right click on the project and select Commit. This is copying your files to the svn server. j. This will give you a dialog box to type in a comment with your commit. Type a comment and click OK.
k. Now in your regular Java view you should see a revision number, timestamp and author next to each of your committed files. l. Now, I made a change to my file Picture.java. When I click on the Synchronize View I can see that the file has changed because of the presence of the icon: Just like when we initially added the files you can right click on the Pictures folder and select Commit, add a comment and hit OK.
5. Accessing the project that you added from a second computer a. On a second computer, go to the Java Perspective. Right click in the Package Explorer and select import. b. In the pop-up select SVN Checkout Project from SVN and click Next >
c. Select Create a new repository and click Next > d. Repeat steps d)-f) from Adding a Project to add the repository on your second computer and type in your password. e. You should then see the projects that you checked in from your 1 st computer. Select the project that you want to view on this computer and click Finish f. Now that you have the project in your repository on both computer you will use the Synchronization View to UPDATE (get the newer version of the code from the repository) and COMMIT (push your newest version of the code to the repository). You should always UPDATE before you COMMIT! You should COMMIT everything that you ve worked on before you change computers!