-
Notifications
You must be signed in to change notification settings - Fork 14
Eclipse on ubuntu
I am using a chrome book that runs ubuntu.
To get eclipse installed I used the following commands:
sudo apt-get install openjdk-7-jdk
sudo apt-get install openjdk-7-jre
sudo apt-get install eclipse
The versions that ended up on the machine were:
java -version ; java version 1.7.0_79
javac -version ; javac 1.7.0_79
eclipse version 3.8
Install egit using Eclipse Marketplace using:
In eclipse, used the Help> Install New Software >
Available Software
Work with:
http://download.eclipse.org/egit/updates
(NOTE: next section is only if you do not already have git installed on your machine) also the commands are specific to ubuntu
Installed git using
sudo apt-get install git
git --version
git version 1.9.1
Select all packages
Eclipse will need to restart (note you may need to reinstall the egit software for each user)
Once egit is installed you should see Git as a pull-down option under the
File> Import> Choose Import Source > Git> Clone URL
The Egit user's guide is: https://wiki.eclipse.org/EGit/User_Guide#Getting_Started
Local Desitination:
Configure the local storage location for VERDI
/home/lizadams/git/VERDI
Initial branch: master
Configuration: Remote name: origin
(Note I didn't check the box for Clone submodules..)
Source Git Repository
Enter the location of the source repository
URL: https://github.com/CEMPD/VERDI.git
Host: github.com
Repository Path: /CEMPD/VERDI.git
Need username and password
Branches of https://github.com/CEMPD/VERDI.git
Shapefiles
master
verdi_1.6
verdi_1.6_v1
Import projects from folder (option selected by default was *Detect and configure nested projects under the given location) - Then clicked finish
The finish button didn't seem to work, but I could see that git had obtained the VERDI code and placed it under:
/home/lizadams/git/VERDI
I then went to Eclipse>File>Import>Git>Projects from Git> Existing Local Repository
Then used Import Existing Eclipse Projects from the top Working Directory Level
The VERDI application was downloaded from CMAS Center and is located under the
/home/lizadams/apps/VERDI_1.5 directory
The eclipse working directory for VERDI is under /home/lizadams/git/VERDI
Change directories to the eclipse working directory
To switch between branches, use the following at the command line
git checkout Shapefiles | to change to the Shapefiles branch
git checkout master | to change to the master branch
Then, once you are back in eclipse use the command File> Refresh
to refresh the code within eclipse so that it points to the Shapefile Branch.
When using ant to build a version to run outside of eclipse, it will build the code under /home/lizadams/VERDI_1.6
and put the tar.gz file under /home/lizadams/verdi_install
For help on using Egit:
http://www.vogella.com/tutorials/EclipseGit/article.html
Clone the repository and then create a new branch:
https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches