... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Starting Linux Version
#1
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.
Reply
#2
(29.05.2009, 15:27)linuxchiq Wrote: I have installed Route Converter on my Linux machine, running Ubuntu
"Jaunty Jackalope": [..]

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.
--
Christian
Reply
#3
(08.06.2009, 07:49)routeconverter Wrote: That's 9.04?

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.


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.
Reply
#4
(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?
--
Christian
Reply
#5
(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)?
Reply
#6
(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:
  • install seamonkey
  • set MOZILLA_FIVE_HOME=/usr/lib/seamonkey
  • install jdic 0.9.5
  • replace the files libjdic.so, libmozembed-linux-gtk2.so, mozembed-linux-gtk2 from RouteConverterLinux.jar by the ones from OpenSUSE
  • remove libmozembed-linux-gtk1.2.so, mozembed-linux-gtk1.2 from RouteConverterLinux.jar

That gave me a map which was unfortunately pretty unstable Sad
--
Christian
Reply
#7
(08.06.2009, 16:58)routeconverter Wrote: That's since FireFox is not embeddable while Seamonkey contains an embeddable Gecko rendering engine.

The RouteConverterLinux.jar contains outdated versions of JDIC. That's what I did with OpenSUSE 10.3:
  • install seamonkey
  • set MOZILLA_FIVE_HOME=/usr/lib/seamonkey
  • install jdic 0.9.5
  • replace the files libjdic.so, libmozembed-linux-gtk2.so, mozembed-linux-gtk2 from RouteConverterLinux.jar by the ones from OpenSUSE
  • remove libmozembed-linux-gtk1.2.so, mozembed-linux-gtk1.2 from RouteConverterLinux.jar

That gave me a map which was unfortunately pretty unstable Sad

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 . . .
Reply
#8
(08.06.2009, 18:11)linuxchiq Wrote: 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 . . .

It seems, it does mattern Sad
--
Christian
Reply
#9
(09.06.2009, 10:41)routeconverter Wrote: It seems, it does mattern Sad

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. ^_^
Reply
#10
Then send me libjdic.so, libmozembed-linux-gtk2.so, mozembed-linux-gtk2 from your installation and I'll do the packaging for you.
--
Christian
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)