Eclipse / Zend Studio crashing on New project on Ubuntu KDE

Posted August 30th, 2015 in Razno by Metod

If you are using the latest stable versions of either Eclipse or Zend Studio on Ubuntu with KDE installed you might have run into some trouble along the way. If you have oxygen theme installed the IDE will crash whenever you want to create a new project. Or maybe the close buttons won’t work. Plenty of problems.

However there is a simple solution which I found digging around the comments in bug reports.

For oxygen, edit the normally already existing file “/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc” and change
GtkComboBox::appears-as-list = 1
into
GtkComboBox::appears-as-list = 0

Works like a charm!

All credit goes to Axel Müller for pointing to the original comment made by Hugo Pereira Da Costa.

P.S.: The workaround for this is quite old. However since google search does not provide the straight up answer and the problem persists in latest Ubuntu 14.04 LTS I have decided this is worth a post.

Eclipse – Adding Files to Git Index problem

Posted December 4th, 2011 in Zanimivosti by Metod

Encountering the following error in Eclipse/Zend Studio while trying to add files in Git?

Adding Files to Git Index problem

Check if a file ‘index.lock’ exists in the .git folder located in the root folder of your project.

If so, remove it and you can continue working!

  1. rm .git/index.lock

Porting PHPEclipse syntax coloring to Eclipse PDT

Posted February 1st, 2011 in Razno by Metod

I was pushed into the “eclipse php world” with Eclipse + PHPEclipse setup. Although I knew about Eclipse PDT I never bothered to install it since PHPEclipse worked fine. Up untill I wanted to work with the newest PHP 5.3 features. PHPEclipse just doesn’t support that. So I had to move to PDT. It supports PHP 5.3 and is indeed a better tool. But what bothered me was the syntax coloring which is a bit different from PHPEclipse. So I’m publishing this “migration” post for anyone who has or will have the same problem. You can also use this guide to migrate to Zend Studio, since it is based on Eclipse PDT. Including me at some future time.

Eclipse PDT / Zend Studio:

  • Multi-line comment: #3F7F5F
  • Single-line comment: #3F7F5F
  • PHP tags: #FF0080
  • Keyword: #7F0055
  • Functions: #7F7F9F (no italic)
  • Variable: #7F7F9F
  • Parameter variables: #7F7F9F
  • Fields: #7F7F9F
  • Static fields: #7F7F9F
  • Superglobal variables: #7F7F9F
  • Internal constants: #7F0055
  • Constants: #7F0055
  • String: #2A00FF

Also in Zend Studio, line highlight is not the same as in PHPEclipse or Eclipse PDT.

  • Current line highlight: #E8F2FE

Annoying Eclipse message about JavaHL on Ubuntu

Posted June 21st, 2010 in Tehnikalije by Metod

How to get rid of it?

First of, we need to install some libraries:

  1. sudo apt-get install libsvn-java

Once this is done, we need to tell JVM (Java Virtual Machine) to include the path to our new libsvnjavahl-1.so file, when searching for extensions. We can do this in the eclipse configuration file. It is located inside the directory in which you installed Eclipse and is called eclipse.ini.

Find the line -vmargs and after it (in a new line) add this one:

  1. -Djava.library.path=/usr/lib/jni

Restart Eclipse and you’re done.

Tested on Eclipse Galileo (3.5.2) through all latest releases on Ubuntu 10.04 and onward.