Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Overview

Code Block
titleSetup
ECLIPSE_HOME=/opt/eclipse
HELIOS=eclipse-SDK-3.6M6-linux-gtk
GALILEO=eclipse-java-galileo-linux-gtk-x86_64
GANYMEDE=eclipse-rcp-ganymede-SR2-linux-gtk-x86_64
GROOVY_ECLIPSE=org.codehaus.groovy.eclipse.feature-20090803-1500-e34-N
GROOVY_JDT=org.codehaus.groovy.jdt.patch-20090803-1500-e34-N
Code Block
titlePrep
mkdir -p $ECLIPSE_HOME/src
cd $ECLIPSE_HOME/src

Eclipse Installations

Code Block
titleDownload
wget "http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/download.php?dropFile=$HELIOS.tar.gz"

wget "http://cloud.eclipsesource.com/R/$GALILEO.tar.gz"

wget "http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/ganymede/SR2/eclipse-rcp-ganymede-SR2-linux-gtk-x86_64.tar.gz"
Code Block
titleUnpack
OUT=$HELIOS
tar xzf $ECLIPSE_HOME/src/$OUT.tar.gz --directory $ECLIPSE_HOME
mv $ECLIPSE_HOME/eclipse $ECLIPSE_HOME/$OUT

OUT=$GALILEO
tar xzf $ECLIPSE_HOME/src/$OUT.tar.gz --directory $ECLIPSE_HOME
mv $ECLIPSE_HOME/eclipse $ECLIPSE_HOME/$OUT

OUT=$GANYMEDE
tar xzf $ECLIPSE_HOME/src/$OUT.tar.gz --directory $ECLIPSE_HOME
mv $ECLIPSE_HOME/eclipse $ECLIPSE_HOME/$OUT

Groovy pieces

Code Block
titleDownload
cd $ECLIPSE_HOME/src
wget http://codehaus.org/~werdna/org.codehaus.groovy.eclipse.feature-20090803-1500-e34-N.zip
wget http://codehaus.org/~werdna/org.codehaus.groovy.jdt.patch-20090803-1500-e34-N.zip
Code Block
titleInstall into Ganymede (Not required for Helios or Galileo)
unzip -o -d $ECLIPSE_HOME/$GANYMEDE $ECLIPSE_HOME/src/$GROOVY_ECLIPSE.zip
unzip -o -d $ECLIPSE_HOME/$GANYMEDE $ECLIPSE_HOME/src/$GROOVY_JDT.zip

Xvfb

Code Block
titleas root
Xvfb :0
#and leave running

Verify

Code Block
export DISPLAY=:0.0
$ECLIPSE_HOME/$GANYMEDE/eclipse -clean -console
#No errors should be displayed
Code Block
ss org.eclipse.jdt.core
No Format
osgi> ss org.eclipse.jdt.core

Framework is launched.

id State Bundle
173 RESOLVED org.eclipse.jdt.core_3.4.5.20090803-1500-e34-N
Fragments=171, 172
174 RESOLVED org.eclipse.jdt.core.manipulation_1.2.0.v20080603-2000
Tip

You should see 1 or 2 bundles listed.
Look for the bundle that starts org.eclipse.jdt.core
The full name should be somthing like:
org.eclipse.jdt.core_3.4.5.20090803-1500-e34-N

Code Block
ss org.codehaus.groovy
No Format
osgi> ss org.codehaus.groovy

Framework is launched.

id State Bundle
138 <<LAZY>> org.codehaus.groovy_1.7.0.20090803-1500-e34-N
139 <<LAZY>> org.codehaus.groovy.eclipse.ant_2.0.0.20090803-1500-e34-N
140 <<LAZY>> org.codehaus.groovy.eclipse.codeassist.completion_2.0.0.20090803-1500-e34-N
141 <<LAZY>> org.codehaus.groovy.eclipse.codebrowsing_2.0.0.20090803-1500-e34-N
142 <<LAZY>> org.codehaus.groovy.eclipse.core_2.0.0.20090803-1500-e34-N
143 RESOLVED org.codehaus.groovy.eclipse.core.help_2.0.0.20090803-1500-e34-N
144 <<LAZY>> org.codehaus.groovy.eclipse.cstviewer_2.0.0.20090803-1500-e34-N
145 <<LAZY>> org.codehaus.groovy.eclipse.refactoring_2.0.0.20090803-1500-e34-N
146 <<LAZY>> org.codehaus.groovy.eclipse.ui_2.0.0.20090803-1500-e34-N
Tip

There should be a bunch of bundles listed here. If you get
something like 10 bundles, then we are in business and everything has
been installed correctly!

More testing

Step 1

Make sure that the o.e.jdt.core with the right version number is
installed in the plugins directory and the
org.codehaus.eclipse.jdt.patch feature is installed in the features
directory with the right version number.

Step 2

1. run 'eclipse -clean -console'
2. at osgi prompt 'ss org.eclipse.jdt.core'

No Format
Looks good - same as before

3. at osgi prompt 'start org.eclipse.jdt.core'
Any exceptions? Are the bundles shown with the right version?
If this works, then yay! All is good.

No Format
Nothing shown

Step 3

grep "org.eclipse.jdt.core" $ECLIPSE_HOME/$GANYMEDE/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
1. open up the following file:
$ECLIPSE_HOME/$GANYMEDE/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
2. look for the line that starts 'org.eclipse.jdt.core,'. What
version number is there?
Not much to do here, but just interesting to know.

Warning

No such line!

Step 4

Warning

This seems to be auto installed

1. run '$ECLIPSE_HOME/$GANYMEDE/eclipse -clean -console'
2. at osgi prompt 'install file:plugins/org.eclipse.jdt.core_3.4.5.20090804-1600-e34-N.jar'

PLUGIN=`ls $ECLIPSE_HOME/$GANYMEDE/plugins/org.eclipse.jdt.core*-N.jar`
#BASEPLUGIN=`basename $PLUGIN`
echo "install file:$PLUGIN"

(replace version number with the version of the jar installed)
3. 'start org.eclipse.jdt.core'
4. 'ss org.eclipse.jdt.core'
Any problems?