Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Wednesday, October 6, 2010

Eclipse crashes inbetween.....

Hi Friends,

Whats up?  From the past few days I was working on eclipse galileo for development into the php or in a broad for drupal. It was working fine till yesterday when I installed Android on the same instance. Didn't got the reason but after that my eclipse started giving me problem and it was crashing on each time I tried to make any changes to my drupal instance through eclipse. So to resolve the issue I did following things.

  1. turn off all Eclipse instances
  2. delete following files:
    • WORKSPACE/.metadata
    • ~/.mozilla/eclipse
    • ~/.eclipse
  3. add -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib64/xulrunner-1.9.2.10/libxpcom.so to the end of your eclipse.ini file (actual path to your libxpcom.so may be different)
  4. you are done. You may use your Eclipse safely
But Yes there now one more issue that came up to me. And that is this that whatever third party plug-ins I installed like php, mercurial, svn, android etc. all have been gone. So need to again reinstall all of them. So before doing these changes make sure that you can reinstall all again and you have all the details in hand to reinstall them. For php, svn and mercurial you can refer my blog here.

For Android or others you need to google for that. 

Monday, August 30, 2010

Installing Eclipse PHP...

Hi,

here i am going to explain you the procedure to install eclipse php for developing a php web site also i will explain the installation of plugins for Eclipse like mercurial, SVN.

I have installed all these in ubuntu 10.04 but can be used to install on any of the debian os and to install on other linux os like fedora use rpm package installer like yum, etc instead of apt-get.

Install Eclipse:

sudo apt-get install eclipse

This will also resolve all the dependencies as well and install all the packages necessary for eclipse like openjdk, etc.

Now you need to install PHP plugin for that. but before that you need to install eclipse plugin development environment as the eclipse
is not fine with installation of php plugins.

Eclipse pde:
sudo apt-get install eclipse-pde

Mercurial:
sudo apt-get install mercurial

Now go to Applications> Programming>Eclipse

Then in eclipse go to Help>install new software

And click on add and add following plugins to it. After adding each plugin click on ok. then select the plugin and click next. and accept the terms and say finish. and you are done with the plugin. Repeat same for each pluging individually.

PHPEclipse

http://update.phpeclipse.net/update/stable/1.2.x/

Now select the list came into the install window and click on install and on next page click on next and finally finish. Thats it you are done the installation of eclipse pde. Same thing you need to follow for the installation of mercurial and SVN. Select the urls for that as follows.

Mercurial
http://www.vectrace.com/eclipse-update/

SVN
http://subclipse.tigris.org/update_1.4.x

Now you are done installation of php plugin as well SVN plugin.

At last open terminal and type following line into it.

hg clone https://chamilo.googlecode.com/hg/ chamilo 

And hit enter. it will install Chamilo.

And here you are done with php plugin installation for eclipse.