Installing Eclipse PDT

by Klaus Graefensteiner 26. March 2010 09:17

Introduction

This is the forth article of a series of blog post called the WIMPinator Chronicles that describe how to setup a PHP development environment for Windows 7 and IIS 7.5.

So far we covered how to install a Wordpress blog and all its dependencies using the WPI (Web Platform Installer). Then we added additional features and extensions to the PHP deployment on Windows for IIS. Finally I explained how to get PEAR setup and how to download and deploy the PHPUnit unit testing framework using PEAR.

In this part I am going to demonstrate how to install the PHP edition of Eclipse Galileo called PDT PHP Development Tools.

The Series

  1. Getting a Wordpress blog installed in a jiffy on Windows 7 using the Web Platform Installer
  2. Adding additional features to PHP
  3. Installing PEAR and PHPUnit
  4. Installing Eclipse PDT
  5. Configuring Eclipse PDT to work with Subversion source control
  6. Configuring Eclipse to work with Ant build tasks
  7. Creating a new IIS 7.5 fast CGI web site
  8. Setting up XDebug with Eclipse and IIS 7.5
  9. Setting up the Zend Debugger with Eclipse and IIS 7.5
  10. Configuring Ruby and Watir
  11. Moving a Wordpress blog from GoDaddy shared hosting to my local debugging system.

Installing PDT

PDT stands for PHP Development Tools. PDT is built on top of the Eclipse IDE, which itself is written in Java. Zend is the company behind PDT and provides tools, frameworks and debuggers for PHP. The process of installing PDT on Windows 7 is straight forward. First you need to install the Java SDK or Runtime and then download and extract Eclipse PDT.

Pitfall

The only pitfall you can run into is that your Java Runtime is 64-bit and you downloaded the 32-bit PDT version or vice versa. The error message you get when you try to start Eclipse would be similar to this:

StartingEclipseWrongSDKOrMissingSDK_2

Figure 1: Be aware to match the Java Runtime CPU architecture with the one Eclipse is using 

Install Java

To get started, open your favorite search engine and search for java SDK download.

GoogleJavaSDKDownload_2

Figure 2: Google for Java SDK Download

Follow the Java SE Download link.

JavaSDKGoogleResultClickDownloadLink_2

Figure 3: Follow the Java SE Download link

This will get you to Oracle’s page. Leave the default platform selection, if you are planning to run the 32-bit version of the Java virtual machine.

JavaSEDownloadLandingPage_2

Figure 4: Java is now Oracle

Optional: Change the platform to Windows x64, if you prefer the 64-bit JVM.

JavaSDKDownloadLandingPageSelect64bitWindowsPlatform_2

Figure 5: Select Windows 64-bit, if you are planning on using Eclipse 64-bit

Click the red download button.

JavaDownloadSkipThisStep_2

Figure 6: Ignore this dialog. It is optional

ReadyToDownloadJavaSDK_2

Figure 7: Finally click on the file called jdk-6u17-javafx-1.2-windows-i586.exe

DownloadingFile_2

Figure 8: Click Run to download and launch the Java SDK installer

JavaSDKDownloadProgress_2

Figure 9: The file is downloading

JavaInstallEula_2

Figure 10: Finally the installer is launching. Accept the License Agreement

JavaFeatureOptions_2

Figure 11: Select Next

JavaSetupSelectInstallationLocation_2

Figure 12: Select the destination folder or leave the default

JavaSetupExtractingInstaller_2

Figure 13: Extracting files

 JavaSDKSuccessfullyInstalled_2

Figure 14: The install is complete. Click the Finish button

Unfortunately the selected file also installs the JavaFX package. Click next.

JavaFXSetupWizard_2

Figure 15: Click Next to install JavaFX

JavaFXEula_2

Figure 16: Again, accept the license agreement

JavaFXInstallationLocation_2

Figure 17: Select the installation folder

JavaFXReadyToInstall_2

Figure 18: Ready to install JavaFX

JavaFXInstallationProgress_2

Figure 19: Installing JavaFX…

At the end of the install the installer tries to open a the JavaFX web page. Click No, if you are interested in seeing it.

JavaFXInstallationSecurityWarning_2

Figure 20: Click No to get a look at the JavaFX web site

JavaFXSignupWebPage_2

Figure 21: The JavaFX Web Site

Finally the Java SDK is installed and we are ready to download and launch Eclipse PDT.

JavaFXInstallationSuccess_2

Figure 22: Conclude the Java SDK install

Install Eclipse PDT

Once we have Java installed, we are ready for Eclipse PDT. Just Google for “Eclipse PDT download”.

GoogleForEclipsePDTDownload_4

Figure 23: Google Eclipse PDT download

Follow the link to http://www.eclipse.org/pdt

GoogleSearchResultEclipsePDT_2

Figure 24: Go to Eclipse.org

Click on the link to PDT and Zend Server Community Edition.

EclipsePagePointingToZendCommunityEdition_2

Figure 25: Now to to Zend’s web site to download PDT

Click on the Windows link under “Download Eclipse PDT All-In-One”.

EclipsePHPDevelopmentToolsAtZendPage_2

Figure 26: Download PDT All-In-One for Windows

Save the zip file zend-eclipse-php-galileo-SR1-win32-x86.zip in your download folder.

ZendEclipseGalileoSR1Win32FileDownload_2

Figure 27: Save the file in your downloads folder

SaveDownloadAs_2

Figure 28: Picking the download folder

 DownloadingPDT_2

Figure 29: Downloading the 171 MB file

Finally we have downloaded the zip file. The deployment is now very easy.

EclipsePDTZipFileInExplorer_2

Figure 30: The downloaded zip file

Open the downloaded zip file and extract it to your local c:\program files(x86) folder

OpenEclipseZipFile_2

Figure 31: The zip file contains a folder called eclipse

ExtractingEcplipseIntoProgramsFolder

Figure 32: Extracting the contents of the zip file into your program files folder

StillExtractingEclipse_2

Figure 33: Extraction progress

EclipseDeployedInExplorer_2

Figure 34: Extracted Eclipse files

To start Eclipse you can just launch the eclipse.exe file from C:\Program Files(x86)\Eclipse, but we will pin it first to the Taskbar using the right mouse click “Pin To Taskbar” command.

PinEclipseToTaskbar_2

Figure 35: Pin Eclipse.exe to taskbar

EclipseInTaskbar_2

Figure 36: Eclipse PDT is now accessible from the taskbar

Here is the big moment: Click on the Eclipse PDT icon to launch Eclipse for the first time. You will be welcomed by the following security warning dialog. Un-check the “Always ask before opening this file” checkbox to avoid this dialog in the future. Then click Run.

OpenEclipseSecurityWarning_2

Figure 37: Security Warning

FinallyEclipseStartingUpAfterTheCorrectJavaVMVersion_2

Figure 38: Eclipse splash screen

When you run Eclipse for the first time you need to provide a folder for the workspace. This is where your configuration and project files will be. Click the check box, if you don’t like to be asked again.

EclipseSpecifyYourWorkspace_2

Figure 39: Pick a workspace

We are almost there, but we also need to add some firewall exceptions. If possible restrict the firewall exception to your private network like your home or workplace by clicking the appropriate checkbox.

EclipseFirewallWarning_2

Figure 40: Punch a hole into the firewall. Keep it secure by restricting it to private networks if possible

Hello Eclipse PDT!

EclipseWelcomeScreen_2

Figure 41: Eclipse PDT is showing us the welcome screen

Close the welcome screen by clicking on the white x next to the Welcome title of the Welcome tab. DONE!

EclipseIsReady_2

Figure 42: The Eclipse IDE work space

Ausblick

The basic Eclipse PDT is now running. The next two articles are going to integrate Eclipse with Subversion source control and ANT build tasks. Stay tuned.

Tags: , , ,

WIMPinator Chronicles | IIS | Php | Tips & Tricks

Comments

4/1/2010 6:22:09 AM #

Burak Erdem

Thanks for this great tutorial. That's the best and the most detailed Eclipse PDT installation article ever.

Burak Erdem Turkey | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as developer in Test at Rockwell Automation and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Administration

About

Powered by:
BlogEngine.Net
Version: 1.5.0.7

License:
Creative Commons License

Copyright:
© Copyright 2009, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2009 by Klaus Graefensteiner

Rendertime:
Page rendered at 9/3/2010 12:31:42 AM (PST Pacific Standard Time UTC DST -7)