468x60

Firestarter firewall GUI 1.0.3-5 bug in initscript on system boot up Debugging PHP Applications with Xdebug and Eclipse PDT
Apr 12
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Eclipse SDKNOTE, 04/08/08: This tutorial covers Eclipse Europa. If you would like to install the latest version of Eclipse 3.4 Ganymede, with PDT and SQL Explorer, take a look at my latest Tutorial: “64 Bit Eclipse 3.4 (Ganymede) IDE with PDT and SQL Explorer - Full PHP/MySQL Web Application IDE“.

I had tried once before to install the x64 (64 Bit) version of Eclipse IDE, about 8 months ago, but found it to be somewhat buggy and unstable. In the interim, I’ve been using the 32 Bit version of Eclipse PDT for my development stuff. Earlier this year (21/02/08) a new version of Eclipse 64 Bit was released, so I gave it a go today. So far, so good!

Unfortunately, there’s no 64 Bit PDT all-in-one, but I managed to install a 64 Bit equivalent by cobbling together the relevant packages available by using the Eclipse Update Manager system, after initially installing the latest version of Eclipse Classic 3.3.2 64 Bit.

I wanted to keep everything (or as much as possible) 64 Bit, so I also download and installed the 64 Bit JRE, which can be downloaded here (or use the direct link to the bin file). The method for installing the 64 Bit JRE is the same as the 32 Bit version - after the file downloaded to my desktop, I opened up a new Terminal Window (Applications -> Accessories -> Terminal), traversed to the directory I wanted to install it into, moved the file, made it executable, and ran it to install:

cd /usr/java
sudo mkdir 64
cd 64
sudo mv ~/Desktop/jdk-6u5-linux-x64.bin /usr/java/64/
sudo chmod a+x jdk-6u5-linux-x64.bin
sudo ./jdk-6u5-linux-x64.bin

If the “java” directory doesn’t exist, it needs to be created first:

sudo mkdir /usr/java

listing the directory

ls

should return

jre1.6.0_05

which is the directory containing the necessary Java binaries.

As with my previous 32 Bit installation, I wanted Eclipse to be installed in the /opt directory:

cd /opt
sudo mv ~/Desktop/eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz /opt
sudo tar -zxvf eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz

then rename the eclipse directory:

sudo mv eclipse eclipse64

I also needed to get the newly installed Eclipse to run with the newly installed JRE - by default, the eclipse executable in the directory will try and detect Java and use whatever it finds, so I created a shell script:

cd eclipse64
sudo gksu gedit eclipse.sh

containing the following:

#!/bin/bash
PATH=/usr/java/64/jre1.6.0_05/bin:$PATH
/opt/eclipse64/eclipse

Now instead of running the eclipse executable, I run eclipse.sh (make sure it’s executable)

sudo chmod 755 eclipse.sh

before running

/opt/eclipse64/eclipse.sh

PDT and WTP Plugins

The first time I ran the new 64 Bit version, everything went well - it was fast, and seemed stable, so I went ahead and started installing all the additional plugins I needed (and still need…). Goto Help -> Software Updates -> Find and Install, and select “Search for new features to install”.Click on “New Remote Site” for each of the following:

  • Name: PDT, URL: http://download.eclipse.org/tools/pdt/updates/
  • Name: WTP, URL: http://download.eclipse.org/webtools/updates/
  • Name: GEF, URL: http://www.eclipse.org/gef/updates/
  • Name: EMF, IRL: http://www.eclipse.org/modeling/emf/updates/

Eclipse Update Manager Add Remote Site

Actually, there are only a couple of components required from the GEF (Graphical Editing Framework) and EMF (Eclipse Modeling Framework) packages to satisfy dependencies - WTP (Web Tools Platform) requires a package from GEF, and GEF from EMF…

After adding these, click on Finish - the Update Manager will then query any mirrors for the latest versions of the plugins. Once it has finished, a dialog appears, where it is possible to select the plugins to download and install. First, I selected PDT - the Update Manager then informed me that PDT requires files from WTP, so I tried clicking the “Select Requires” button, hoping that it would sort out the dependencies on my behalf. Unfortunately, nothing happened… So, I selected WTP manually, then expanded GEF -> Eclipse SDK R3.3.1 and Selected Graphical Editing Framework 3.3.1v20070814, then expanded EMF -> EMF SDK 2.3.2 and selected Eclipse Modeling Framework (EMF) - org.eclipse.emf.ecore 2.3.2v200802051830… I could then click “Select Required” to get the last few residual required dependencies… Phew…

Eclipse Update Manager Select Updates

Actualy, it still bugged me for dependencies for Java Persistence API contained in WTP, but by that stage I really couldn’t be arsed going through the process of adding more stuff to the Update Manager and potentially having to search for further dependencies, so I just deselected the three Java Persistence API files contained in WTP.

OK, with the dependencies sorted, I clicked Next, accepted the agreements, finished, and went to make, and drink a brew (that’s Tea) while the Update Manager downloaded and installed the requested stuff.

MySQL: SQL Explorer Plugin

Eclipse SQL Explorer LogoOnce everything had downloaded and installed, I restarted Eclipse. Everything looked good! Great, in fact. But I also wanted to install a few more plugins, including the MySQL SQL Explorer Plugin - which additionally requires, and depends on Eclipse DTP (Data Tools Project). Eclipse DTP has to be downloaded and installed manually, since there is no automated Update Site. So, I downloaded dtp_1.5.2_022008.zip to my Desktop, and set about extracting and installing the files:

cd ~/Desktop
mkdir DTP
mv dtp_1.5.2_022008.zip DTP
cd DTP
unzip dtp_1.5.2_022008.zip
cd eclipse
sudo cp -R features plugins /opt/eclipse64

If Eclipse is open, restart it. With the DTP installed, I could set about installing the SQL Explorer Plugin. The instructions for installing and configuring the SQL Explorer Plugin can be found in my previous article - Eclipse PDT and MySQL - SQL Explorer Plugin, since I don’t want to regurgitate information, just follow the link if you need to install it, and come back when it’s done.

Note: Actually, now I had the DTP installed, I could download and install the additional Java Persistence API in WTP! Same method: Update Manager, select WTP etcetera, etcetera…

ATF: AJAX Framework Toolkit

Script.aculo.usOnce the SQL Explorer Plugin was installed, I had one final plugin - ATF (the AJAX Toolkit Framework). This can be downloaded as a Site Archive, and the zip file added to Eclipse’s Update Manager. Once downloaded, I opened the Update Manager in Eclipse (Help -> Software Updates -> Find and Install), and clicked on “New Archived Site”, to add a new locally archived site, calling it ATF, and pointing it to the freshly downloaded atf-incubation-SiteArchive-0.2.3M4-v200709141050.zip file. I discovered, however, that the site.xml file contained within the zipped site archive is somewhat out of date and the pointers within are directed to the wrong download locations, so I had to manually locate the additional dependent plugins - Mozilla XULRunner, and Mozilla JS. They can both be added as New Remote Sites to the Update Manager, by clicking on the “New Remote Site” button, and adding the following information:

  • Name: Mozilla JS, URL: http://ftp.mozilla.org/pub/mozilla.org/js/eclipse/
  • Name: XULRunner, URL: http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.1.3/contrib/eclipse/

The previously used EMF plugin is also required to satisfy a couple of dependencies, so I selected the ATF, Mozilla JS, XULRunner, and EMF plugins from the list, and clicked Finish. Once the “updates” were found, I selected XULRunner, Mozilla JS, ATF (I deselected the ATF -> Mozilla JS component though, since an updated version was to be downloaded and installed from the Mozilla Server), and also selected the required EMF components. Click through Next etc. to download and install. Once completed, I restarted Eclipse.

In the Window -> Preferences menu by the way, AJAX toolkits such as Script.aculo.us can be added to the ATF module.

Et Voila! I now have a working Eclipse 64 Bit version up and running! Finally!

Oh, if you want a desktop icon, just create a file on your Desktop called Eclipse.desktop,

cd ~/Desktop
gedit Eclipse.desktop

and add the following:

[Desktop Entry]
Categories=;
Encoding=UTF-8
Exec=/opt/eclipse32/eclipse.sh
Hidden=false
Icon=/opt/eclipse64/icon.xpm
Icon[en_US]=/opt/eclipse64/icon.xpm
Name=Eclipse
Name[en_US]=Eclipse
Terminal=false
Type=Application
Version=1.0


SONY VAIO P4 Notebook Laptop Computer PCG-GRX500K
US $36.00 (7 Bids)
End Date: Friday Sep-05-2008 15:01:25 PDT
Bid now | Add to watch list
Lot of 16 Qty Laptop Notebook PC Desktop RAM Memory!!!
US $26.03 (16 Bids)
End Date: Friday Sep-05-2008 16:22:41 PDT
Bid now | Add to watch list
LENOVO 3000 N100 0768 LAPTOP NOTEBOOK
US $230.27 (6 Bids)
End Date: Friday Sep-05-2008 18:00:00 PDT
Bid now | Add to watch list
1 DELL LATITUDE XP P4 2 M Wi Fi WIFI LAPTOP NOTEBOOK NR
US $127.50 (8 Bids)
End Date: Friday Sep-05-2008 18:33:20 PDT
Bid now | Add to watch list
NEW Dell Inspiron 1525 Laptop Notebook Dual Core webcam
US $585.00 (28 Bids)
End Date: Friday Sep-05-2008 18:36:04 PDT
Bid now | Add to watch list
New Aluminum Notebook Laptop Hard Case bag 17 in Silver
US $22.72 (18 Bids)
End Date: Friday Sep-05-2008 18:46:52 PDT
Bid now | Add to watch list


  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • StumbleUpon
  • Technorati
  • Slashdot

Related posts:

  1. Eclipse PDT and MySQL - SQL Explorer Plugin
  2. Debugging PHP Applications with Xdebug and Eclipse PDT
  3. Eclipse PDT IDE for PHP MySQL 32 Bit install on 64 Bit Ubuntu
  4. 64 Bit Eclipse 3.4 (Ganymede) IDE with PDT and SQL Explorer - Full PHP/MySQL Web Application IDE

written by Hodge \\ tags: , , , , , , ,

16 Responses to “64 Bit Eclipse: Linux Installation, including PDT, WTP (WST), ATF, and MySQL (SQL Explorer Plugin)”

  1. madneon Says:

    Thanks (again) for sharing info, it has been very useful for me :)
    Note, that ubuntu 64 doesn’t need installing java 64.

  2. Debugging PHP Applications with Xdebug and Eclipse PDT | 64 Bit Jungle Says:

    [...] Web Host 64 Bit Eclipse: Linux Installation, including PDT, WTP (WST), ATF, and MySQL (SQL Explorer Plugin) Apr [...]

  3. Eclipse PDT IDE for PHP MySQL 32 Bit install on 64 Bit Ubuntu | 64 Bit Jungle Says:

    [...] 12/04/08: I have now successfully installed the x64 version of Eclipse - see 64 Bit Eclipse: Linux Installation, including PDT, WTP (WST), ATF, and MySQL (SQL Explorer Plugin) for a step by step guide, or continue reading this article if you want to install the 32 bit [...]

  4. nerdd.net | news and opinion Says:

    64 Bit Eclipse Linux Installation + PDT, WTP, MySQL, AJAX | nerdd.net…

    \r\nHow to install the 64 Bit version of Eclipse IDE, and additionally the PDT, WTP, ATF and SQL Exp…

  5. 64 Bit Azureus BitTorrent Client with 64 Bit JRE | 64 Bit Jungle Says:

    [...] - I wanted to install the latest x64 version, and utilise the x64 JRE I had installed for the x64 Eclipse IDE. Of course, it can easily be installed by [...]

  6. kangaroo man Says:

    Hello

    I have a very weird problem while trying to run the x86_64 buiild of the Eclipse C/C++ interface on my openSuse 10.3. FYI I have openSuse 10.3 x64 build running on my 64 bit Opteron processors.

    I get the following error on a pop-up window and it crashes:

    JVM terminated. Exit code=1
    /usr/bin/java
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx256m
    -jar /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash
    -launcher /home/suman/downloads/test/eclipse/eclipse
    -name Eclipse
    –launcher.library /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.3.R33x_v20080118/eclipse_1023.so
    -startup /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata 22000e
    -vm /usr/bin/java
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx256m
    -jar /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar

    FYI my version of JVM is:

    $java -version
    java version “1.5.0_12″
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_12-b04, mixed mode)

    Any help would be appreciated.

    Rgds
    Kangarooman.

  7. Hodge Says:

    Hi Kangarooman,

    I had the same error when I first installed - I was running the Eclipse executable which was looking for the default system Java installation, and Eclipse didn’t seem to like that version. Have you tried downloading and installing the latest 64 bit Java from http://www.java.com/en/download/linux_manual.jsp? You can unpack this version into a new directory - /usr/java/64 - by moving the downloaded file to /usr/java/64 (create the “64″ directory if it doesn’t exist) and running the binary. I’ve looked at your error message, and modified the following commands for your system.

    Assuming you have downloaded the java install file to /home/suman/downloads/ then in a Terminal, you can run:

    cd /usr/java
    sudo mkdir 64
    cd 64
    sudo mv /home/suman/downloads/jdk-6u5-linux-x64.bin /usr/java/64/
    sudo chmod a+x jdk-6u5-linux-x64.bin
    sudo ./jdk-6u5-linux-x64.bin

    Also, create a shell script called eclipse.sh in your Eclipse directory (looking at you error message, I assume it’s /home/suman/downloads/test/eclipse/), which points Eclipse to this installed version of 64 bit Java, then runs the Eclipse executable:

    gedit /home/suman/downloads/test/eclipse/eclipse.sh

    The shell script should contain (modified from the one in the tutorial to reflect your system):

    #!/bin/bash
    PATH=/usr/java/64/jre1.6.0_05/bin:$PATH
    /home/suman/downloads/test/eclipse/eclipse

    Remember to make eclipse.sh executable:

    chmod a+x /home/suman/downloads/test/eclipse/eclipse.sh

    and run this shell script instead of the Eclipse executable.

    Hope that helps,

    Hodge.

  8. Kangarooman Says:

    Hello Hodge

    I could never make it work on my openSuse x64 build 10.3. But I could make it work after removing the suse distro and installing Ubuntu (Hardy).

    Seeing both come with the same Java versions installed, I think the x64 build of Ubuntu is a lot more organised and stable.

    But thanks for all your help,

    Kangarooman.

  9. 64 Bit Eclipse: Linux Installation, including PDT, WTP (WST), ATF, and MySQL (SQL Explorer Plugin) : HowtoMatrix Says:

    [...] Read more at 64 Bit Jungle [...]

  10. FreedGuy Says:

    Hodge,

    This tutorial was my life saver :-) Thanks a million.

    Today i switched to Eclipse 3.4 (ganymede) 64bit. The eclipse guys have made it much easier to install plugins now. It took me less than 2 mins to install pdt, wtp and sql. I found this excellent tutorial: http://www.howtoforge.com/setting-up-eclipse-pdt2.0-on-eclipse3.4-ganymede

    happy coding :)
    FreedGuy

  11. Install Java JRE 1.6.0 (Update x) on Hardy as the Default Java Runtime | 64 Bit Jungle Says:

    [...] is run, either explicitly from the Terminal, or via a Java executable (such as the Eclipse IDE), Ubuntu will use the newly installed /usr/java/64/jre1.6.0_07/bin/java binary as opposed to the [...]

  12. Hodge Says:

    Hi FreedGuy,

    I was just in the middle of writing a short tutorial on setting up Ganymede, lol :) It is much easier in 3.4, so it’s more of a small guide than a tutorial I’ll be publishing later today.

    Thanks for the feedback.

  13. 64 Bit Eclipse 3.4 (Ganymede) IDE with PDT and SQL Explorer - Full PHP/MySQL Web Application IDE | 64 Bit Jungle Says:

    [...] IMPORTANT NOTE: This installation configuration currently relies on Integration builds of both PDT and DLTK, since the current Stable builds of each are not currently supported under Eclipse 3.4. I will update this tutorial as support becomes available, but if you are not comfortable installing Integration builds, please see my previous tutorial on setting up a PHP IDE in Eclipse Europa: “64 Bit Eclipse: Linux Installation, including PDT, WTP (WST), ATF, and MySQL (SQL Explorer Plugin)“. [...]

  14. Nicholas Fellows (web developer) Says:

    Im just writing this comment in the hope that Google might pick this comment up.
    I have been struggling to get PHPEclipse and Subclipse to work with eclipse on Hardy Heron. due to a variety of errors. PHPEclipse not opening a document. or crashing for various reasons. In the end I found this tutorial and followed it as far as the installing the PDT and WST plugins and instead installed PHPEclipse and Subversion in my usual manner.
    I used jre1.6.0_07 , Eclipse Europa (eclipse-java-europa-winter-linux-gtk-x86_64.tar.gz) .

    Subclipse ( http://subclipse.tigris.org/update_1.0.x/ )
    and
    PHPEclipse ( http://phpeclipse.sourceforge.net/update/stable/1.2.x/ )

    I hope this helps someone trying to get PHPEclipse to work properly - cus it’s taken me 2days to nail this on Hardy Heron

    Nick …

  15. Jwickard Says:

    What gtk theme are you using? it looks really nice

  16. Hodge Says:

    Hi Jwickard,

    I’m using the ubuntu-studio theme as a base, which can be installed by running:

    sudo apt-get install ubuntustudio-theme

    I also have SlicknesS-Black installed on top for the controls and window borders, which can be found at http://www.gnome-look.org/content/show.php/Slickness+Black?content=73210 and finally, the Emerald Beryl theme Radial, which can be downloaded from http://www.gnome-look.org/content/show.php/radial?content=71352

    You’ll need to install emerald for radial to work:

    sudo apt-get install emerald

    Hope that helps :)

Leave a Reply

Webloogle Blog Directory