eclipse

Configure eclipse and subversive under Ubuntu

Problem:

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib

Solution
#install libsvn-java
sudo  apt-get install libsvn-java

#add following linies to eclipse.ini

Running eclipse under Mac OS

Solution

#add optiopn to java args
-d32

Problem
java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:197)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174)
	at org.eclipse.swt.internal.C.<clinit>(C.java:21)
	at org.eclipse.swt.internal.cocoa.NSThread.isMainThread(NSThread.java:33)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:116)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:668)

Integrating maven project into eclipse using m2eclipse and wtp

    To be ablerun maven web project inside eclipse you need install
  • m2eclipse core
  • m2eclipse wtp integration

Obtaining Selection from Eclipse workbench

The code for getting eclipse selection

ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
ISelection eclipseSelection = selectionService.getSelection();

Usefull Links
Eclipse Workbench: Using the Selection Service

My photo from Eclipse conference 2010

Import RF sources as eclipse projects in JBoss Tools

    To import RF as eclipse project into workspace you need to do following steps
  • Download RF from SVN repository
    svn co http://anonsvn.jboss.org/repos/richfaces/root 
  • Then install library
    cd root
    mvn install -Dmaven.test.skip=true -P components,trunk 
  • Then add sources and make projects eclipse projects
    mvn eclipse:eclipse -Dmaven.test.skip=true -P components,trunk 
  • Import projects from root folder into eclipse

Eclipse buttons, some shortcuts not woks under Ubuntu 9.10(Karmic Koala)

Problem
Some buttons not react on mouse clicks under Ubuntu 9.10, shortcust like CTRL+SHIFT+T not works to, Updates not works for eclipse.
Solution #1
set following environment variable

export GDK_NATIVE_WINDOWS=1
#and than run eclipse
./eclipse

You should run eclipse at the same terminal window where set GDK_NATIVE_WINDOWS=1
Another solution is #code to eclipse.ini
-DGDK_NATIVE_WINDOWS=1

Useful links

org.eclipse.swt.SWTError: No more handles on OS X when run JBoss Tools VPE

When you run JBoss Tools visual page editor on Mac OS 10.4 folllowing error possible.
Solution is update java on your env atleast to java 1.5.07(OSX Java Update 5) or never
Here Link to Java Updates

org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:3910)
	at org.eclipse.swt.SWT.error(SWT.java:3799)
	at org.eclipse.swt.SWT.error(SWT.java:3770)
	at org.eclipse.swt.browser.MozillaDelegate.getHandle(MozillaDelegate.java:147)

Syndicate content