Skip to main content
Jump to: navigation, search

Difference between revisions of "PDT/Installation"

< PDT
m (Eclipse 3.4 / Ganymede / PDT 1.1: script to (re)create a clean PDT install from several zips (linux only))
(Eclipse 3.4 / Ganymede / PDT 1.1: updated for Ganymede release)
Line 20: Line 20:
 
== Eclipse 3.4 / Ganymede / PDT 1.1 ==
 
== Eclipse 3.4 / Ganymede / PDT 1.1 ==
  
<blockquote><table style="border: 1px red dashed; padding:10px"><tr><td>'''''This information is preliminary and subject to change. At time of writing, the latest stable Eclipse 3.4 was [http://download.eclipse.org/eclipse/downloads/drops/S-3.4M7-200805020100/index.php 3.4M7].'''''</td></tr></table></blockquote>
+
 
 +
<blockquote><table style="border: 1px red dashed; padding:10px"><tr><td>'''''This information is preliminary and subject to change.'''''</td></tr></table></blockquote>
  
 
=== From Update Site ===
 
=== From Update Site ===
Line 27: Line 28:
  
 
* Get Eclipse:
 
* Get Eclipse:
:* Download an [http://download.eclipse.org/eclipse/downloads/ Eclipse SDK or Runtime Binary] or the latest [http://www.eclipse.org/epp/download.php Ganymede JEE Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
+
:* Download an [http://download.eclipse.org/eclipse/downloads/ Eclipse SDK or Runtime Binary] or the latest [http://www.eclipse.org/downloads/ Ganymede JEE Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].
  
 
* Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 1.1 build]. Unpack the zip somewhere.
 
* Download the latest [http://download.eclipse.org/tools/pdt/downloads/ PDT 1.1 build]. Unpack the zip somewhere.
  
{{codeblock|unzip -d ~/eclipse/org.eclipse.php_feature-N20080512.zip_ org.eclipse.php_feature-N20080512.zip}}
+
{{codeblock|unzip -d ~/eclipse/org.eclipse.php_feature-N20080623.zip_ org.eclipse.php_feature-N20080623.zip}}
 
   
 
   
 
* Start the Install Manager.
 
* Start the Install Manager.
 
{{codeblock|
 
{{codeblock|
 
  Help > Software Updates... > Available Software
 
  Help > Software Updates... > Available Software
   Add Site... > ''add the Ganymede Milestone site: http://download.eclipse.org/releases/ganymede/''
+
   Add Site... > ''add the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/''
   Add Site... > Local > ''add the unpacked folder: ~/eclipse/org.eclipse.php_feature-N20080512.zip_''
+
   Add Site... > Local > ''add the unpacked folder: ~/eclipse/org.eclipse.php_feature-N20080623.zip_''
 
   Select the PDT Feature
 
   Select the PDT Feature
 
   Install...
 
   Install...
Line 54: Line 55:
 
  #!/bin/bash
 
  #!/bin/bash
 
  vm=/opt/sun-java2-5.0/bin/java
 
  vm=/opt/sun-java2-5.0/bin/java
  eclipse=eclipse-SDK-3.4M7-linux-gtk.tar.gz
+
  eclipse=eclipse-SDK-3.4-linux-gtk.tar.gz
 
  workspace=~/eclipse/pdt-dev/workspace
 
  workspace=~/eclipse/pdt-dev/workspace
 
   
 
   

Revision as of 12:59, 27 June 2008

Installing PDT is relatively easy.

Install a JVM

  • Regardless of your operating system, you will need to install some Java virtual machine.
  • If using Windows, you may already have one installed, but upgrading won't hurt.
  • If using Linux, read this -- GCJ will NOT work.
  • Consider an IBM JDK or a Sun JDK. See below for minimum requirements.

PDT All-In-One

The simplest way to install PDT is via an All-In-One bundle, if one exists for your platform (operating system, windowing system, architecture).

If there is no All-In-One for your platform, try one of the options below.

Eclipse 3.4 / Ganymede / PDT 1.1

This information is preliminary and subject to change.

From Update Site

  • Get Eclipse:
unzip -d ~/eclipse/org.eclipse.php_feature-N20080623.zip_ org.eclipse.php_feature-N20080623.zip
  • Start the Install Manager.
Help > Software Updates... > Available Software
  Add Site... > add the Ganymede Update site (if not already listed): http://download.eclipse.org/releases/ganymede/
  Add Site... > Local > add the unpacked folder: ~/eclipse/org.eclipse.php_feature-N20080623.zip_
  Select the PDT Feature
  Install...
  • Install. Restart. Enjoy.

From Zips

  • Download the latest PDT 1.1 build + all its listed dependencies, including Eclipse.
  • Save this script as pdt.sh. The first time, run it like this to create a clean PDT install: ./pdt.sh clean; on subsequent restarts, just run ./pdt.sh
 #!/bin/bash
 vm=/opt/sun-java2-5.0/bin/java
 eclipse=eclipse-SDK-3.4-linux-gtk.tar.gz
 workspace=~/eclipse/pdt-dev/workspace
 
 pushd ~/eclipse/pdt-dev >/dev/null
 if [[ $1 == "clean" ]]; then
   rm -fr eclipse;
   echo "Unpack $eclipse..."; tar xzf $eclipse
   for f in $(find . -maxdepth 1 -type f -name "*.zip"); do
     echo "Unpack $f ..."; unzip -qq $f -d eclipse/dropins/${f/.zip/}
   done
 fi
 
 echo "Using vm=$vm and workspace=$workspace"; ./eclipse/eclipse -vm $vm -data $workspace \
   -vmargs -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M \
   -consolelog -clean -debug -console -noexit
 popd >/dev/null

Eclipse 3.3 / Europa / PDT 1.0

  • Get Eclipse:
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary or the Europa JEE Bundle, then unpack it and start it up.
Help > Software Updates > Find and Install... > 
  (*) Search for new features > Next > 
  [x] Europa Discovery Site > 
  New Remote Site > add the new site: http://download.eclipse.org/tools/pdt/updates/ >
  Finish
  • Expand the Europa Discovery site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • Install*. Restart. Enjoy.

Eclipse 3.2 / Callisto / PDT 0.7

  • Get Eclipse:
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary, then unpack it and start it up.
Help > Software Updates > Find and Install... > 
  (*) Search for new features > Next > 
  New Remote Site > add the new site: http://download.eclipse.org/callisto/releases/ >
  New Remote Site > add the new site: http://download.eclipse.org/tools/pdt/updates/ >
  Finish
  • Select the projects &/or components you want to install.
  • Expand the Callisto Updates site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • If it does not work, you will have to manually select dependencies.
  • If that doesn't work, start over, but add more update sites. Can't find a given dependency? Try here or here.
  • Install*. Restart. Enjoy.

Known Problems

  • You may find that your chosen mirror fails due to bug 203794. Until that bug is fixed, try another mirror, or try an FTP site instead of an HTTP site.

Back to the top