Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Setting up Eclipse: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 40: Line 40:
== Prefs file missing? ==
== Prefs file missing? ==


this bit
Working through this bit:


   Open the file net.sourceforge.phpeclipse.ui.prefs that is in the directory (your workspace)/.metadata/.plugins/org.eclipse.core.runtime/.settings in a text editor.
   Open the file net.sourceforge.phpeclipse.ui.prefs that is in the directory (your
  workspace)/.metadata/.plugins/org.eclipse.core.runtime/.settings in a text editor.


the file is not there. net.sourceforge.phpeclipse.prefs is present, but does not have the line described.
the file is not there. net.sourceforge.phpeclipse.prefs is present, but does not have the line described.


[[User:Matt Gibson|Matt Gibson]] 16:48, 17 January 2008 (CST)
[[User:Matt Gibson|Matt Gibson]] 16:48, 17 January 2008 (CST)

Revision as of 22:48, 17 January 2008

Really nice work, Tim, thanks! I've been through and I'm trying it out. Martin Dougiamas 09:05, 5 September 2006 (CDT)


The stuff about changing editors under General -> Editors -> File Associations doesn't work any more if an Eclipse plugin has 'locked' a file type or content type. Not sure how to fix this --Andy Baker 06:40, 28 November 2006 (CST)

Hopefully it will be the PHP plugin, and it will have locked *.php to the setting you want anyway. If not, can you tell us exactly what you are seeing.Tim Hunt 04:24, 29 November 2006 (CST)

Problems with Ubuntu 6.10...

I'd really like to switch completely to Linux and Eclipse on my Moodle developments. However, I can't get the PHPEclipse plug-in to work with Eclipse 3.2 that came with Ubuntu 6.10. After the Eclipse restart required by the "add . to the include path" tweak, the "PHPEclipse stuff" is gone from the menus (forgot what it said), and when I try to open a PHP file in Eclipse I get: "Failed to execute runnable (java.lang.NoClassDefFoundError: net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor)" and "Unhandled event loop exception"... Going to Google around a bit, but there seems to be a lot of other issues with the JVM also: Eclipse crashed when I tried to search the help, for example. --Samuli Karevaara 04:07, 20 December 2006 (CST)

Just reporting that now the error message has changed to "Problems occurred when invoking code from plug-in: "org.eclipse.jface"." or I was reading the wrong part of the error log before... --Samuli Karevaara 04:11, 20 December 2006 (CST)
One headache later I was able to get Eclipse to open the PHP files. Apparently it was about the Java Runtime Environment version after all. I had "sun-java5-bin : Sun Java(TM) Runtime Environment (JRE) 5.0" package installed but it didn't help. After completely removing everything "Java 1.4" ("j2re1.4" and friends) and upgrading "libgjc" packages I got it to work. I reeeeally not a friend of Java versioning and library packaging! --Samuli Karevaara 06:05, 20 December 2006 (CST)

Ubuntu Eclipse Improvements

Just found this: http://wiki.liferay.com/index.php/Liferay_Development_Environment:_Ubuntu_Linux#Eclipse_IDE

It may help a bit.

There is a problem wiht the different java VM. If you set that the vm is the one of sun it must be like this everywere I did that:


  $ sudo aptitude install eclipse-sdk

Remove any reference to gcj in

    /etc/eclipse/java_home.

edit the file /usr/bin/eclipse and comment

   -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db et 
  -Dgnu.gcj.runtime.VMClassLoader.library_control=never.

For me now eclipse runs with no problem

Prefs file missing?

Working through this bit:

 Open the file net.sourceforge.phpeclipse.ui.prefs that is in the directory (your
 workspace)/.metadata/.plugins/org.eclipse.core.runtime/.settings in a text editor.

the file is not there. net.sourceforge.phpeclipse.prefs is present, but does not have the line described.

Matt Gibson 16:48, 17 January 2008 (CST)