I just acquired a brand new computer at work, and I've been having difficulty getting all the Pentaho tools working on Fedora 8 x86_64. I removed IcedTea, and I've tried the following JDKs (RPMs downloaded from java.sun.com):
- JDK 1.5 i586
- JDK 1.6 i586
- JDK 1.5 x86_64
- JDK 1.6 x86_64
The version of JDK turned out to be irrelevant, but the architecture makes a big difference. Using a x86_64 JDK, I can run the Pentaho Metadata Editor and Data Integration (Kettle), but not the Report Designer or Design Studio (Eclipse).
Using an i586 JDK (Sun don't seem to make i386 ones any more), I can run the Report Designer and Design Studio. When I try to run Kettle (spoon.sh), I get the following:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3346 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:355)
When I try to run metaeditor.sh, I get this:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3320 or swt-pi-gtk in swt.library.path, java.libary.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.gtk.OS.<clinit>(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.<clinit>(Display.java:126)
at org.pentaho.pms.editor.MetaEditor.main(MetaEditor.java:3504)
The Pentaho BI server works regardless of JDK, so there's no problems there. I currently have JDK 1.5 i586 installed, as I rely more on the Report Designer and Design Studio more than I do on Kettle or the Metadata Editor. However, I will be needing to use all of those tools.
I've mucked about with this a lot and can't find a universal solution short of switching my distribution to a 32-bit one and foregoing half of my RAM (I've got 8GB) 
What I can say is:- my JAVA_HOME environment variable is set correctly
- the Java binaries are correctly set with /usr/sbin/alternatives
- I am trying to run each tool with their directory set as the working directory, so I run ./spoon.sh, ./metaeditor.sh and so on.
- I know why Eclipse doesn't work in x86_64 mode, but that doesn't explain why I get eclipse.swt errors with an i586 JDK
- I don't really care whether I run an i586 or x86_64 JDK, as long as I can get everything to run well
- I'm quite experienced with Linux. I'm a competent sysadmin, but I'm not a software developer.
Problem solved: see here for details