![]() |
|
Error Starting Linux Version - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Users (https://forum.routeconverter.com/forum-17.html) +--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html) +--- Thread: Error Starting Linux Version (/thread-362.html) |
Error Starting Linux Version - linuxchiq - 29.05.2009 I have installed Route Converter on my Linux machine, running Ubuntu "Jaunty Jackalope": trinity@niobe:~/RouteConverter$ uname -a Linux niobe 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux And Java 6: trinity@niobe:~/RouteConverter$ java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7) OpenJDK Client VM (build 14.0-b08, mixed mode, sharing) Initially, I got the following error when launching the application: trinity@niobe:~/RouteConverter$ java -jar RouteConverterLinux.jar Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666) at java.lang.Runtime.load0(Runtime.java:787) at java.lang.System.load(System.java:1022) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1614) at java.awt.Toolkit.<clinit>(Toolkit.java:1636) at java.awt.Dimension.<clinit>(Dimension.java:87) at slash.navigation.converter.gui.RouteConverter.<clinit>(Unknown Source) Could not find the main class: slash.navigation.converter.gui.RouteConverter5. Program will exit. I found the library, created a sym link to it in the directory where Route Converter expected to find it, and now get this error: trinity@niobe:~/RouteConverter$ java -jar RouteConverterLinux.jar Exception in thread "main" java.lang.UnsatisfiedLinkError: java.awt.Insets.initIDs()V at java.awt.Insets.initIDs(Native Method) at java.awt.Insets.<clinit>(Insets.java:91) at javax.swing.plaf.synth.SynthLookAndFeel.<clinit>(SynthLookAndFeel.java:70) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1873) at javax.swing.UIManager.setLookAndFeel(UIManager.java:588) at slash.navigation.gui.Constants.setLookAndFeel(Unknown Source) at slash.navigation.gui.Application.launch(Unknown Source) at slash.navigation.converter.gui.RouteConverter5.main(RouteConverter5.java:60) Any suggestions how to proceed? EDITED TO ADD: The commandline version functions correctly, only the GUI gives the error. RE: Error Starting Linux Version - routeconverter - 08.06.2009 (29.05.2009, 15:27)linuxchiq Wrote: I have installed Route Converter on my Linux machine, running Ubuntu That's 9.04? (29.05.2009, 15:27)linuxchiq Wrote: Any suggestions how to proceed? I'd remove the link you've created since it is responsible for the Java Swing error when initializing the UI. And install the Sun JRE/JDK instead of OpenJDK. RE: Error Starting Linux Version - linuxchiq - 08.06.2009 (08.06.2009, 07:49)routeconverter Wrote: That's 9.04? Thanks for responding! Yes, 9.0.4. I did rm the link, and install the sun version of the jre/jdk. Now the GUI opens, and displays the route information, but there is an "unsatisfied link" error where the map should be, and I get the following in the terminal: trinity@niobe:~$ java -version java version "1.6.0_13" Java SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot Client VM (build 11.3-b02, mixed mode, sharing) trinity@niobe:~$ java -jar ./RouteConverter/RouteConverterLinux.jar Logging to /tmp/RouteConverter.log org.jdesktop.jdic.init.JdicInitException: java.lang.UnsatisfiedLinkError: /tmp/routeconverter/libjdic.so: libstdc++.so.5: cannot open shared object file: No such file or directory at org.jdesktop.jdic.init.JdicManager.initBrowserNative(Unknown Source) at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source) at slash.navigation.converter.gui.mapview.JdicMapView.createWebBrowser(Unknown Source) at slash.navigation.converter.gui.mapview.JdicMapView.initialize(Unknown Source) at slash.navigation.converter.gui.mapview.JdicMapView.<init>(Unknown Source) at slash.navigation.converter.gui.RouteConverter$3.run(Unknown Source) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsatisfiedLinkError: /tmp/routeconverter/libjdic.so: libstdc++.so.5: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1005) at slash.navigation.util.Externalization.loadLibrary(Unknown Source) at org.jdesktop.jdic.init.InitUtility.<clinit>(Unknown Source) ... 7 more ETA: I checked my installed packages, seems I have libstdc++6 installed. RE: Error Starting Linux Version - routeconverter - 08.06.2009 (08.06.2009, 14:27)linuxchiq Wrote: ETA: I checked my installed packages, seems I have libstdc++6 installed. Now you're at the point where I stumbled: I couldn't neither compile JDIC 0.9.4 on Ubuntu nor have libstdc++5 installed. Probably you could do the trick? RE: Error Starting Linux Version - linuxchiq - 08.06.2009 (08.06.2009, 14:57)routeconverter Wrote: Now you're at the point where I stumbled: I couldn't neither compile JDIC 0.9.4 on Ubuntu nor have libstdc++5 installed. Probably you could do the trick? Thanks Christian, progress. ^_^ I have installed libstdc++5, and also found that jdic does not work with firefox, so installed mozilla seamonkey. Now the application launches with no errors, but the embedded browser still does not open. Not sure I understand your suggestion about compiling jdic - do I need to download and install it separately from RouteConverter? If so, which version ? Would a precompiled binary work, or would I need to build from source? (jdic-20060613-bin-cross-platform, jdic-20060613-bin-linux, jdic-20060613-src)? RE: Error Starting Linux Version - routeconverter - 08.06.2009 (08.06.2009, 16:14)linuxchiq Wrote: I have installed libstdc++5, and also found that jdic does not work with firefox, so installed mozilla seamonkey. That's since FireFox is not embeddable while Seamonkey contains an embeddable Gecko rendering engine. (08.06.2009, 16:14)linuxchiq Wrote: Not sure I understand your suggestion about compiling jdic - do I need to download and install it separately from RouteConverter? If so, which version ? Would a precompiled binary work, or would I need to build from source? (jdic-20060613-bin-cross-platform, jdic-20060613-bin-linux, jdic-20060613-src)? The RouteConverterLinux.jar contains outdated versions of JDIC. That's what I did with OpenSUSE 10.3:
That gave me a map which was unfortunately pretty unstable
RE: Error Starting Linux Version - linuxchiq - 08.06.2009 (08.06.2009, 16:58)routeconverter Wrote: That's since FireFox is not embeddable while Seamonkey contains an embeddable Gecko rendering engine. ah, I'm with you now! I followed the steps you suggested, but unfortunately I now get: trinity@niobe:~/RouteConverter$ java -jar RouteConverterLinux.jar Failed to load Main-Class manifest attribute from RouteConverterLinux.jar ETA: I looked at the manifest, and of course main is there. I did notice each line ends with ^M as though it was previously edited in windows. Not sure why that would matter now if it didn't before though . . . RE: Error Starting Linux Version - routeconverter - 09.06.2009 (08.06.2009, 18:11)linuxchiq Wrote: trinity@niobe:~/RouteConverter$ java -jar RouteConverterLinux.jar It seems, it does mattern
RE: Error Starting Linux Version - linuxchiq - 09.06.2009 (09.06.2009, 10:41)routeconverter Wrote: It seems, it does mattern I did try cleaning up the file in Vi, but then got a "magic number" error - this didn't seem like a good approach to take. ^_^ RE: Error Starting Linux Version - routeconverter - 09.06.2009 Then send me libjdic.so, libmozembed-linux-gtk2.so, mozembed-linux-gtk2 from your installation and I'll do the packaging for you. |