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

Sunday, September 01, 2024

How to fix "java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3452 or swt-pi-gtk in swt.library.path, java.library.path or the jar file"

How to fix "java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3452 or swt-pi-gtk in swt.library.path, java.library.path or the jar file"

Running a 32-bit Eclipse-based application on Ubuntu 20.04 64-bit may fail with message like below:
!SESSION 2024-09-01 04:49:52.176 ----------------------------------------------- eclipse.buildId=I20090510 java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 !ENTRY org.eclipse.osgi 4 0 2024-09-01 04:49:56.569 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3452 or swt-pi-gtk in swt.library.path, java.library.path or the jar file at org.eclipse.swt.internal.Library.loadLibrary(Library.java:233) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151) at org.eclipse.swt.internal.gtk.OS.(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.(Display.java:130) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:511) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:143) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:88) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) !ENTRY org.eclipse.osgi 2 0 2024-09-01 04:49:56.596 !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: !SUBENTRY 1 org.eclipse.osgi 2 0 2024-09-01 04:49:56.597 !MESSAGE Bundle update@plugins/com.qnx.tools.ide.phab.ui_4.6.0.v200903271252.jar [111] was not resolved. !SUBENTRY 2 com.qnx.tools.ide.phab.ui 2 0 2024-09-01 04:49:56.597 !MESSAGE Missing required bundle com.qnx.tools.ide.phab.core_0.0.0. !SUBENTRY 1 org.eclipse.osgi 2 0 2024-09-01 04:49:56.597 !MESSAGE Bundle update@plugins/com.qnx.tools.ide.phab.core_4.6.0.v200903271252.jar [126] was not resolved. !SUBENTRY 2 com.qnx.tools.ide.phab.core 2 0 2024-09-01 04:49:56.597 !MESSAGE Platform filter did not match: (| (osgi.ws=win32) (osgi.ws=photon))
$: sudo apt-get install libxtst6:i386

Sunday, September 10, 2023

Eclipse shortcut keys

This are some of the shortcut keys that I find useful while working with Eclipse.

Key Action
Ctrl+/ Comment out the current line
Ctrl+\ Uncomment the current line
Ctrl+D Delete the current line
Ctrl+M Maximize editor view
Ctrl+Alt+Arrow Up Duplicate current line, maintain caret location
Ctrl+Alt+Arrow Down Duplicate current line, move caret location down
Ctrl+Shift+p Find matching bracket
Window Navigation
Ctrl+F7 Move to different views.
Ctrl+F6 Move to different editor windows
Alt+Shift+Q+C Focus Console View
Alt+F7 Switch between different consoles
Misc
Ctrl+O Quick Outline

Saturday, January 30, 2016

Eclipse configuration

Oxygen.2 (v4.7.2):
Base: Eclipse Platform Binary(link)
Tfs Integration: Team Explorer Everywhere (link)
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Neon (v4.6.x):
Base: Eclipse Platform (link)
Tfs Integration: Team Explorer Everywhere (link)
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Mars.1(v4.5.x):
Base: Eclipse Classic
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Tfs Integration:
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Juno(v4.x):
Base: Eclipse Classic
Python Editor: PyDev
System Integration: StartExplorer  http://basti1302.github.io/startexplorer/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Indigo:
Base: Eclipse IDE for Tester
Subversion Integration: Subclipse
Python Editor: PyDev
XML Editor: Eclipse XML Editors and Tools

Ganymede:
Base: Eclipse IDE for C/C++ Developers
Subversion Integration: Subversive
Python Editor: PyDev
XML Editor: Eclipse XML Editors and Tools

Saturday, April 25, 2015

Updating Eclipse Kepler shows 'Backup of file eclipse.exe failed'

Tried to update Eclipse Kepler but failed with message below.
An error occurred while uninstalling
session context was:(profile=epp.package.testing, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.v20130521-1847 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file D:\eclipse\eclipse.exe failed.
Can not remove : D:\eclipse\eclipse.exe
The workaround?

  1. Rename existing eclipse.exe to say eclipse1.exe
  2. Run eclipse1.exe
  3. Do Eclipse update 

Tuesday, November 04, 2014

"console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0" message when opening a PyDev console

When opening a PyDev console using Jython 2.7b3, I am getting the following error message.

console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0

This does not show up in Jython 2.5. Note that this was already reported elsewhere, like:
http://sourceforge.net/p/jython/mailman/message/32935457/
http://bugs.jython.org/issue2222%3E

To workaround this issue, add -Dpython.console.encoding=UTF-8 in PyDev configuration, see below for details.

Friday, December 28, 2012

Show Whitespace Characters toolbar in Eclipse

To show the toolbar associated with white space character, from main menu do Windows | Customize Perspective.... Then select/enable Tool Bar VisibilityEditor PresentationShow Whitespace Characters.

Customize Perspective
Note that you may have to make Editor Presentation available through Commands Groups Availability like below.
Command Groups Availability


Thursday, December 27, 2012

Eclipse TFS support

To install TFS support within Eclipse do:
  1. Open Eclipse
  2. Do Help | Install New Software....
  3. In Install software dialog, select Add....
  4. Give it a name like "Eclipse TFS Plugin".
  5. In location, type http://dl.microsoft.com/eclipse/tfs then hit on OK button.
  6. Select Team Foundation Server Plug-in for Eclipse, see below.
  7. Select Next to proceed with the installation. 
  8. In Installation Details, select Next again.
  9. In Review Licenses, select I accept the terms of the license agreements.
  10. Then hit on Finish.
  11. Select Yes on You will need to restart Eclipse SDK for the changes to take effect. Would you like to restart now? dialog.
Oh the integration is awesome, head to Installing the Team Foundation Server Plug-in for Eclipse for more details. Tested with Eclipse 4.2 on Windows 8 using JRE 7 update 10.

Thursday, December 20, 2012

Show whitespace characters in Eclipse editor


From main Eclipse menu do, Windows | Preferences. Then General | Editors | Text Editors | enable Show whitespace characters (configure visibility).

Show whitespace characters



Cannot move tool bar icons in Eclipse 4.2 Juno


Searching for tool bar actions in Juno shows that user should be able to unlock tool bar for customization. Unfortunately this function is not working, see bug 340695.

If you really wanted to move the icons there is a workaround. Change the theme to Windows 7 and restart. You should now be able to move items around.

References:
http://stackoverflow.com/questions/11301795/how-to-unlock-toolbars-in-eclipse-4-2-juno


Eclipse 4.2 Juno default configuration is very slow - how to make it a little faster

Eclipse 3.x series performed pretty good enough that I use it for XML and Python editing. But the latest Eclipse 4.2 Juno release is pretty slow on virtual machines. Few minor tweaks made it bearable for me.

Open Preferences dialog (Window | Preferences). Expand to General | Appearance, then change Theme to Classic and disable Enable animations.

Preferences - Theme to Classic

Friday, May 04, 2012

Setting up Eclipse 4.1 as IronPython IDE

There are various IDEs available out there that can be used for IronPython. One of them is Eclipse + PyDev + Subclipse for version control. The nice thing with this setup is that it provides intellesense and it does understand Python language well.

Setting it up is fairly easy. First download Java Runtime, I have used v6 update 32 for this exercise. Second, download Eclipse 4.1 (4.1.2 as of this writing). The way I see it, version 4.x is not yet for the mainstream use but it does work fairly well. Third, install latest PyDev and finally install Subclipse for SVN integration.

~ts

Thursday, October 30, 2008

Changing Eclipse text editor font

Working long hours tinkering with code can greatly strain your eyes. I think this is the reason why most programmers are so picky with the font they are using. I spend quite a lot of time looking for the best font (my personal best). Proggy fonts are quite good, so is Envy Code R.

But for quite sometime, I believe more than a year, I developed love and hate relationship with Consolas. This font is optimized for Microsoft ClearType. The problem is not all of the machines I used are upgraded to RDP 6.x clients. Older remote desktop clients does not support ClearType, so I have to use non-cleartype friendly fonts. Courier New is good candidate but most of the time I settle with Proggy fonts.

Anyway, to use Consolas in Eclipse 3.4.1 (Ganymede) is easy and oh note that this font is designed for VS2005 and VS2008. Just hit on Windows | Prerences | General | Appearance | Colors and Fonts | Basic | Text Font. See below for screen shot where to access this option.

Step 1: Window | Preferences.

Step 2: Select Text Font under "Basic" root node.

Step 3: Select the desired font. In this case, I'm gonna use Consolas.

Enjoy!
TS

Saturday, January 20, 2007

Use Palm OS Developement Suite documentation in latest version of Eclipse

Palm OS Developer Suite v 1.2 comes with Eclipse 3.0.x and CDT 2.0.2.ps002 which is quite outdated. Latest Eclipse version as of this writing was 3.2.1 with CDT at version 3.1.1. This latest CDT comes with lots of goodies like bracket matching and code folding which is absent in the CDT that comes with PODS. To use the documentation from PODS to the latest version of Eclipse copy the following directory including the files: com.palmsource.eclipse.sdk.palmos5.doc.user_1.2.0.23 com.palmsource.eclipse.tools.doc.user_1.2.0.23 Assuming default install these files should be located in C:\Program Files\PalmSource\Palm OS Developer Suite\eclipse\plugins. Copy this files into \plugins

Fedora install screen chronicle

Fedora install screen chronicle Below are links to Fedora installation screens. It is interesting to see how it has evolved over time. Fe...