From owner-freebsd-java@FreeBSD.ORG Sun Oct 8 09:21:44 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F41216A407; Sun, 8 Oct 2006 09:21:44 +0000 (UTC) (envelope-from zouk@tiscali.nl) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52C3943D5C; Sun, 8 Oct 2006 09:21:43 +0000 (GMT) (envelope-from zouk@tiscali.nl) Received: from [82.170.181.144] (helo=[192.168.1.100]) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1GWUqs-0006dD-0a; Sun, 08 Oct 2006 11:21:42 +0200 From: Robert Gilaard To: Greg Lewis , freebsd-eclipse@freebsd.org, freebsd-java@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DYCE0zc6q0LIuPOsLbb7" Date: Sun, 08 Oct 2006 11:21:44 +0200 Message-Id: <1160299304.809.14.camel@zouk.tiscali.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Cc: Subject: Eclipse SWT question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2006 09:21:44 -0000 --=-DYCE0zc6q0LIuPOsLbb7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi folks, I've been trying to run pentaho's design report wizard (Pentaho being the sourceforge project of the month and very popular open source Business Intelligence platform) on my freebsd amd64 system running freebsd 6 where I've installed diablo-jdk. The report design wizard seems to use some SWT stuff and I can't start the application. I've asked the pentaho people and they have responded like this: Quote from pentaho mailinglist Hi, the problem lies within the SWT. That thing is not Java - its plain C/C ++ with all the ugly dependencies that come with it. So "run anywhere" works only, as long as no SWT is involved. (Say thanks to IBM (and its war against Sun) for that.) The most likely cause is, that FreeBSD is not Linux. It may smell like Linux - but it uses a different library layout. You will have to replace the linux-specific libraries against FreeBSD libs. Now you have two choices: (a) If there's an Linux-compatiblity-layer, you can try that one.=20 (b) If that fails, you have to compile the libraries yourself. (Or try to find a precompiled version. Eclipse.org ignores FreeBSD, so there are no official builds from them) The ReportDesigner works, as that one is 100%-Pure Java with no SWT involved. Regards, Thomas Unquote Now I want to know how to proceed. Am I on a dead end or is there a way out? The error I was reporting is: My reportwizard_linux.sh file looks like: #!/bin/sh if [ "$LD_LIBRARY_PATH" =3D "" ]; then LD_LIBRARY_PATH=3D/usr/X11R6/lib/mozilla export LD_LIBRARY_PATH fi if [ "$MOZILLA_FIVE_HOME" =3D "" ]; then MOZILLA_FIVE_HOME=3D/usr/X11R6/lib/mozilla export MOZILLA_FIVE_HOME fi java -cp ./resources:./bin:./classes:./lib/pentaho-reporting-1.2.0.jar:./lib/act= ivation.jar:./lib/asm- attrs.jar:./lib/bsf-2.3.0.jar:./lib/bsh-1.3.0.jar:./= lib/castor-1.0.1.jar:./lib/commons-logging.jar: ./lib/commons-collections-3= .1.jar:./lib/commons-dbcp-1.2.1.jar:./lib/commons-pool-1.2.jar:./lib/ dom4j= -1.6.1.jar:./lib/eigenbase-properties.jar:./lib/eigenbase-resgen.jar:./lib/= eigenbase-xom.jar:./ lib/itext-1.4.jar:./lib/javacup.jar:./lib/jaxen.jar:./= lib/jcommon-logging-log4jlog-1.0.2.jar:./lib/ jcommon-1.0.5.jar:./lib/jcomm= on-xml-1.0.5.jar:./lib/jfreereport-0.8.7-6.jar:./lib/js.jar:./lib/jug- lgpl= -2.0.0.jar:./lib/libfonts-0.1.9.jar:./lib/log4j-1.2.8.jar:./lib/mondrian.ja= r:./lib/pentaho.jar: ./lib/pixie-0.8.6.jar:./lib/poi-3.0-alpha1-20050704.ja= r:./lib/libloader-0.1.2.jar:./lib/saxon8.jar: ./lib/saxon8-dom.jar:./lib/sa= xon8-jdom.jar:./lib/saxon8-sql.jar:./lib/saxon8-xom.jar:./lib/saxon8- xpath= .jar:./lib/simple-jndi-0.11.1.jar:./lib/xercesImpl.jar:./lib/xml-apis.jar:.= /lib/ org.eclipse.core.runtime_3.1.0.jar:./lib/swt-linux/linux-swt.jar:./li= b/nicky.jar:./lib/jfreechart- 1.0.1.jar:./lib/commons-httpclient-3.0-rc4.ja= r:./lib/commons-fileupload-1.0.jar:./lib/commons-codec- 1.3.jar:./lib/commo= ns-math-1.0.jar -Djava.library.path=3D./lib/swt-linux/:/usr/X11R6/lib/mozil= la org.pentaho.jfreereport.wizard.ReportWizard Here I've changed the LD_LIBRARY_PATH and MOZILLA_FIVE_HOME environment vars and I dropped my postqresql jdbc driver in the lib/jdbc folder as the documentation suggested but after I issue sh reportdesigner_linux.sh I get the following error message: [rgilaard@zouk /usr/home/rgilaard/RDW]$ sh reportwizard_linux.sh Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/home/rgilaard/RDW/lib/swt-linux/libswt= -pi-gtk-3232.so: /usr/home/rgilaard/RDW/lib/swt-linux/libswt-pi-gtk-3232.so= : unsupported file layout at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) 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:126) at org.pentaho.jfreereport.wizard.ReportWizard.(ReportWizard.java:122) [rgilaard@zouk /usr/home/rgilaard/RDW]$ So what can I do now? --=-DYCE0zc6q0LIuPOsLbb7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFKMMosN8QN/Daqe0RAhG9AKCb51X6+4eq95vAHUGpHyZf4mS4mQCgm342 htFEXmE/d0GO20U7EkXyKFU= =kjBY -----END PGP SIGNATURE----- --=-DYCE0zc6q0LIuPOsLbb7--