Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
On 2015-09-18 13:25, Alan Corey wrote: If you're trying to do Android development, Android Studio I think is the only officially supported development environment, but it's just written in Java so it might be portable. It is a repacking of IntelliJ IDea with the new Android plugin. IntelliJ is indeed mostly in Java but does have some binary components (it's in ports). As Stuart Henderson pointed out to me though Android is actually a Linux kernel running in Google's userland muck so running it under OpenBSD may be tricky. You wouldn't be running Android apps directly, you'd be running them in the Android emulator, which was (and still may be) a fork of qemu, so it might be possible to make the emulator run on OpenBSD.
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
I also have Eclipse installed under 5.7 on a Latitude D530 with 2 gigs of ram but didn't really look into whether it worked or not, just went on installing more things. Installing the swt package did the trick for me, I'm not sure why it got built but not installed. It was just sitting there in /usr/ports/packages/i386/all I installed Eclipse hoping to do Android development but I haven't tried that yet. It may be too old an Eclipse version. I also have Gradle running. And in another partition on this 1 TB drive is Debian Linux which has since run past the maximum cylinder the BIOS can address, just like the OpenBSD FAQ says may happen with it. Updated some key file, now it doesn't boot anymore, so it may get newfsed to OpenBSD space. Anyway Eclipse was the main reason I have Debian. If you're trying to do Android development, Android Studio I think is the only officially supported development environment, but it's just written in Java so it might be portable. As Stuart Henderson pointed out to me though Android is actually a Linux kernel running in Google's userland muck so running it under OpenBSD may be tricky. So your problem inspired me to fix my installation. Alan -- Credit is the root of all evil. - AB1JX
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
Caspar Schutijser wrote: I am pretty sure that you can fix it by doing "pkg_add swt". That does it, Eclipse up now, dank je wel. -- Jack J. Woehr # Science is more than a body of knowledge. It's a way of www.well.com/~jax # thinking, a way of skeptically interrogating the universe www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
Now the question is if this jar is proper bundle and if so if it's mentioned somewhere in Eclipse OSGi configuration. Do you have configuration/config.ini file? Is there a bundle list inside it or is there kind of simple configuration use? i.e. have a look into osgi.bundles= line. If simple cofiguration is used, then take it's name and see bundles.info inside configuration/ -- verify that org.eclipse.swt.gtk.openbsd is mentioned there in some form. I'm sorry but I can't verify myself as I don't have Eclipse running on OBSD yet and on Linux I do have 4.5. release which may be quite different from 3.x on OBSD... On Mon, Sep 14, 2015 at 8:56 PM, Jack J. Woehrwrote: > Built eclipse today /usr/ports/devel/eclipse > > When I try to run it, it throws and error dialog referring me to > ~/worspace/.metadata/.log where I find > (among other things): > > !ENTRY org.eclipse.osgi 4 0 2015-09-14 12:37:49.832 > !MESSAGE Application error > !STACK 1 > java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3236 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) > at java.lang.Runtime.loadLibrary0(Runtime.java:849) > at java.lang.System.loadLibrary(System.java:1088) > 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.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:436) > at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) > at > org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122) > at > org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75) > at > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) > at > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) > at org.eclipse.core.launcher.Main.basicRun(Main.java:280) > at org.eclipse.core.launcher.Main.run(Main.java:977) > at org.eclipse.core.launcher.Main.main(Main.java:952) > > I do find in > /usr/local/eclipse/plugins/org.eclipse.swt.gtk.openbsd.x86_3.2.2.v3236.jar > the following entry: > > 354196 Defl:N82743 77% 09-14-2015 11:30 0c58e901 > libswt-pi-gtk-3236.so.4.0 > > The Dell Latitude D830 laptop I am running this on only as 1G of memory, > could it be unable to load the library > for lack of memory? > > $ java -version > openjdk version "1.7.0_71" > OpenJDK Runtime Environment (build 1.7.0_71-b14) > OpenJDK Client VM (build 24.71-b01, mixed mode) > > -- > Jack J. Woehr # Science is more than a body of knowledge. It's a way of > www.well.com/~jax # thinking, a way of skeptically interrogating the > universe > www.softwoehr.com # with a fine understanding of human fallibility. - Carl > Sagan >
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
On Monday, 14 September 2015 20:56:34 CEST, Jack J. Woehr wrote: Built eclipse today /usr/ports/devel/eclipse When I try to run it, it throws and error dialog referring me to ~/worspace/.metadata/.log where I find (among other things): !ENTRY org.eclipse.osgi 4 0 2015-09-14 12:37:49.832 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3236 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) 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.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:436) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) I am pretty sure that you can fix it by doing "pkg_add swt". Commit message for revision 1.78 of the Makefile for the port states: "- fix run depend in sdk. it requires swt to run." see http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/eclipse/sdk/Makefile Best regards, Caspar Schutijser
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
Karel Gardas wrote: Now the question is if this jar is proper bundle and if so if it's mentioned somewhere in Eclipse OSGi configuration. The binary file ~/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/.bundledata.1 contains this element: update@plugins/org.eclipse.swt.gtk.openbsd.x86_3.2.2.v3236.jar -- Jack J. Woehr # Science is more than a body of knowledge. It's a way of www.well.com/~jax # thinking, a way of skeptically interrogating the universe www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan
Re: Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
On Mon, Sep 14, 2015 at 8:56 PM, Jack J. Woehrwrote: > java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3236 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) [...] > I do find in > /usr/local/eclipse/plugins/org.eclipse.swt.gtk.openbsd.x86_3.2.2.v3236.jar > the following entry: > > 354196 Defl:N82743 77% 09-14-2015 11:30 0c58e901 > libswt-pi-gtk-3236.so.4.0 > > The Dell Latitude D830 laptop I am running this on only as 1G of memory, > could it be unable to load the library > for lack of memory? I don't think so. UnsatisfiedLinkError is usually a sign of not being able to find the library, nothing more.
Eclipse on OpenBSD 5.7 java.lang.UnsatisfiedLinkError
Built eclipse today /usr/ports/devel/eclipse When I try to run it, it throws and error dialog referring me to ~/worspace/.metadata/.log where I find (among other things): !ENTRY org.eclipse.osgi 4 0 2015-09-14 12:37:49.832 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3236 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) 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.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:436) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:75) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) I do find in /usr/local/eclipse/plugins/org.eclipse.swt.gtk.openbsd.x86_3.2.2.v3236.jar the following entry: 354196 Defl:N82743 77% 09-14-2015 11:30 0c58e901 libswt-pi-gtk-3236.so.4.0 The Dell Latitude D830 laptop I am running this on only as 1G of memory, could it be unable to load the library for lack of memory? $ java -version openjdk version "1.7.0_71" OpenJDK Runtime Environment (build 1.7.0_71-b14) OpenJDK Client VM (build 24.71-b01, mixed mode) -- Jack J. Woehr # Science is more than a body of knowledge. It's a way of www.well.com/~jax # thinking, a way of skeptically interrogating the universe www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan