... the user friendly GPS tool


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter and Mac OS X
#33
(27.05.2010, 22:16)routeconverter Wrote: That assumption is not valid for my release process. The prereleases are always the latest versions you can get. And I update them at least once a week.
Well, the release version mentions 1.33 where as the Prerelease mentions 1.31.3 with a new version 1.32 available. That's confusing and that's why I assumed that the prelease versions were older.

(27.05.2010, 22:16)routeconverter Wrote: I'm using the Maven osxappbundle-maven-plugin and thought it would produce reasonable bundles... Any hints regarding the pom.xml are appreciated.
I did have a look at it but it's really java related and really complicated and it seems that it packages all dependent jars as such in the bundle whereas your complete jar already contains all these dependendency jars ("jar tf jarfile" is one of the few commands I know). That's also why the java -jar Routeconverter.jar works (apart from the map): it contains everything and is completely portable.


(27.05.2010, 22:16)routeconverter Wrote: From which in conclude that this does not start the Java 6 but the Java 5?
The java preferences tool on OSX mentions an immediate switch. To be sure I rebooted and the message is no longer displayed. I assume the java tool does switch it but maybe there were some java-5 left-overs in memory.
Just to report as complete as possible see the startup messages from a "clean" java-6 start:
Code:
java -jar RouteConverter.jar
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
    at slash.navigation.gui.Application.openNativeInterface(Application.java:94)
    at slash.navigation.gui.Application.launch(Application.java:103)
    at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
    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.widgets.Display.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.eclipse.swt.graphics.Device.<clinit>(Unknown Source)
    at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.initialize(NativeInterface.java:425)
    at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.access$0(NativeInterface.java:424)
    at chrriis.dj.nativeswing.swtimpl.NativeInterface.initialize(NativeInterface.java:221)
    at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:239)
    ... 8 more
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
    at slash.navigation.gui.Application.runNativeInterfaceEventPump(Application.java:98)
    at slash.navigation.gui.Application.launch(Application.java:123)
    at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.IllegalStateException: Cannot run the event pump when the interface is not initialized!
    at chrriis.dj.nativeswing.swtimpl.NativeInterface.runEventPump(NativeInterface.java:378)
    ... 8 more
Logging to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/RouteConverter.log


(27.05.2010, 22:16)routeconverter Wrote:
(27.05.2010, 18:23)hvdwolf Wrote: It starts with an error "Can't open <blah blah> due to unknow file type" (note:translated back to english from dutch) for the source. This is due to the fact that the application somehow tries to open a folder instead of a file.

Some users reported this to me and I'm confused... do you have an idea what can cause this error?
On OSX the file handle can be: "file", "folder", "file+folder". I assume the third is used but I don't know java. Only AppleScript and some basic C.


(27.05.2010, 22:16)routeconverter Wrote: This is the real issue - can you manage to use the 32-bit Java 6 version? Or is it easier if I'd package a RouteConverter with an 64-bit SWT-library?
The non-standard java-6 for Leopard only comes as a 64bit version. A 64bit RouteConverter.jar with a 64bit swt would be very nice. I'm verry happy to test it.

My java-5 system version is a universal "ppc7400/i386/x86_64".
Maybe you already know about the "Universal" concept. In that case you can skip the following <Universal>section, otherwise please read it.
<Universal>
Mac comes from ppc hardware and switched early 2006 to intel. For this they "invented" the universal concept. Every binary and library is built for the specific hardware and then "lipo merged". Tiger was ppc/i386. Leopard is mostly ppc/i386/x86_64, partly ppc/i386 and in some libraries/binaries/frameworks "ppc/i386/ppc64/x86_64". SnowLeopard abandoned the ppc platform and is "i386/x86_64". On snowLeopard you have the option (for Universal apps) to right-click the app->Get Info and set it to "automatic", "always run as 32bit", "always run as 64bit". Java can be set via the Java tool in the Utilities folder in the Applications folder.
</Universal>

The bundle principle: The bundle is actually nothing more then a special folder structure and due to some special files the OS and file manager (Finder) recognises it as an App and displays it as a single file. The bundle principle has the advantage that you can stuff everything in it that is not standardly supported on the OS or the OS version. It might be possible to pack the entire java 1.6 inside the bundle. This will blow up the bundle from the current 6 MB to 135MB and maybe more when more dependencies need to be bundled. I don't like that approach, but did have a look at it using the soylatte BSD ported 32bit java6 version. That one is based on OpenMotif which makes the gui look terribly ugly and doesn't make the app work better. It makes it even worse. The map is not displayed either.


(27.05.2010, 22:16)routeconverter Wrote:
(27.05.2010, 18:23)hvdwolf Wrote: Do you have more options for me to test?

The ones above? Would be great!
I did them all I think. More options? (a 64bit swt perhaps? Wink )
Reply


Messages In This Thread
RouteConverter and Mac OS X - by CalvinFold - 26.03.2010, 16:11
RE: RouteConverter and Mac OS X - by d101au - 05.04.2010, 22:48
RE: RouteConverter and Mac OS X - by ioeioe - 10.04.2010, 18:53
RE: RouteConverter and Mac OS X - by ioeioe - 10.04.2010, 19:27
RE: RouteConverter and Mac OS X - by ioeioe - 11.04.2010, 22:43
RE: RouteConverter and Mac OS X - by ioeioe - 12.04.2010, 11:39
RE: RouteConverter and Mac OS X - by hvdwolf - 27.05.2010, 18:23
RE: RouteConverter and Mac OS X - by hvdwolf - 28.05.2010, 07:03
RE: RouteConverter and Mac OS X - by hvdwolf - 28.05.2010, 10:00
RE: RouteConverter and Mac OS X - by hvdwolf - 28.05.2010, 18:48
RE: RouteConverter and Mac OS X - by hvdwolf - 29.05.2010, 09:33
RE: RouteConverter and Mac OS X - by hvdwolf - 29.05.2010, 11:44
RE: RouteConverter and Mac OS X - by hvdwolf - 03.06.2010, 19:22
RE: RouteConverter and Mac OS X - by hvdwolf - 28.05.2010, 13:02
RE: RouteConverter and Mac OS X - by hvdwolf - 29.05.2010, 14:18
RE: RouteConverter and Mac OS X - by hvdwolf - 01.06.2010, 10:35
RE: RouteConverter and Mac OS X - by hvdwolf - 30.05.2010, 10:43
RE: RouteConverter and Mac OS X - by hvdwolf - 02.06.2010, 21:46
RE: RouteConverter and Mac OS X - by hvdwolf - 01.06.2010, 16:24
RE: RouteConverter and Mac OS X - by hvdwolf - 01.06.2010, 18:56
RE: RouteConverter and Mac OS X - by hvdwolf - 01.06.2010, 20:12
RE: RouteConverter and Mac OS X - by hvdwolf - 04.06.2010, 16:05
RE: RouteConverter and Mac OS X - by hvdwolf - 04.06.2010, 19:33
RE: RouteConverter and Mac OS X - by hvdwolf - 16.06.2010, 17:18
RE: RouteConverter and Mac OS X - by hvdwolf - 16.06.2010, 21:42
RE: RouteConverter and Mac OS X - by hvdwolf - 18.06.2010, 18:39
RE: RouteConverter and Mac OS X - by hvdwolf - 19.06.2010, 07:44
RE: RouteConverter and Mac OS X - by hvdwolf - 19.06.2010, 07:55
RE: RouteConverter and Mac OS X - by hvdwolf - 19.06.2010, 09:16
RE: RouteConverter and Mac OS X - by hvdwolf - 20.06.2010, 17:16
RE: RouteConverter and Mac OS X - by hvdwolf - 01.07.2010, 17:42
RE: RouteConverter and Mac OS X - by hvdwolf - 08.08.2010, 15:42
RE: RouteConverter and Mac OS X - by hvdwolf - 09.08.2010, 09:27
RE: RouteConverter and Mac OS X - by hvdwolf - 09.08.2010, 18:49
RE: RouteConverter and Mac OS X - by hvdwolf - 16.08.2010, 09:47
RE: RouteConverter and Mac OS X - by hvdwolf - 20.08.2010, 09:55
RE: RouteConverter and Mac OS X - by hvdwolf - 19.06.2010, 14:14
RE: RouteConverter and Mac OS X - by dfiler - 29.06.2010, 01:17
RE: RouteConverter and Mac OS X - by hvdwolf - 03.07.2010, 09:33
RE: RouteConverter and Mac OS X - by hvdwolf - 03.07.2010, 17:30
RE: RouteConverter and Mac OS X - by hvdwolf - 19.07.2010, 06:31
RE: RouteConverter and Mac OS X - by rctdigo8 - 05.08.2010, 12:41
RE: RouteConverter and Mac OS X - by rctdigo8 - 05.08.2010, 22:56
RE: RouteConverter and Mac OS X - by hvdwolf - 06.08.2010, 15:50
RE: RouteConverter and Mac OS X - by rctdigo8 - 06.08.2010, 21:36
RE: RouteConverter and Mac OS X - by hvdwolf - 06.08.2010, 22:34
RE: RouteConverter and Mac OS X - by asp - 23.08.2010, 09:24
RE: RouteConverter and Mac OS X - by asp - 23.08.2010, 09:53
RE: RouteConverter and Mac OS X - by hvdwolf - 23.08.2010, 12:49
RE: RouteConverter and Mac OS X - by hvdwolf - 23.08.2010, 21:11
RE: RouteConverter and Mac OS X - by hvdwolf - 23.08.2010, 22:43
RE: RouteConverter and Mac OS X - by hvdwolf - 24.08.2010, 17:33
RE: RouteConverter and Mac OS X - by hvdwolf - 25.08.2010, 20:12
RE: RouteConverter and Mac OS X - by hvdwolf - 26.08.2010, 10:57
RE: RouteConverter and Mac OS X - by hvdwolf - 27.08.2010, 19:23
RE: RouteConverter and Mac OS X - by hvdwolf - 27.08.2010, 20:17
RE: RouteConverter and Mac OS X - by hvdwolf - 26.08.2010, 21:50
RE: RouteConverter and Mac OS X - by hvdwolf - 28.08.2010, 12:28
RE: RouteConverter and Mac OS X - by hvdwolf - 29.08.2010, 13:53
RE: RouteConverter and Mac OS X - by hvdwolf - 29.08.2010, 20:51
RE: RouteConverter and Mac OS X - by hvdwolf - 30.08.2010, 10:48
RE: RouteConverter and Mac OS X - by hvdwolf - 01.09.2010, 20:02
RE: RouteConverter and Mac OS X - by hvdwolf - 02.09.2010, 11:53
RE: RouteConverter and Mac OS X - by hvdwolf - 06.09.2010, 19:23
RE: RouteConverter and Mac OS X - by hvdwolf - 19.09.2010, 10:19
RE: RouteConverter and Mac OS X - by hvdwolf - 19.09.2010, 17:10
RE: RouteConverter and Mac OS X - by hvdwolf - 25.10.2010, 18:00
RE: RouteConverter and Mac OS X - by hvdwolf - 25.10.2010, 20:51
RE: RouteConverter and Mac OS X - by hvdwolf - 26.10.2010, 17:24
RE: RouteConverter and Mac OS X - by hvdwolf - 27.10.2010, 16:21
RE: RouteConverter and Mac OS X - by hvdwolf - 28.10.2010, 12:03
RE: RouteConverter and Mac OS X - by hvdwolf - 28.10.2010, 17:49
RE: RouteConverter and Mac OS X - by hvdwolf - 28.10.2010, 21:27
RE: RouteConverter and Mac OS X - by hvdwolf - 29.10.2010, 16:26
RE: RouteConverter and Mac OS X - by hvdwolf - 30.08.2010, 19:06
RE: RouteConverter and Mac OS X - by hvdwolf - 30.08.2010, 21:48
RE: RouteConverter and Mac OS X - by hvdwolf - 30.10.2010, 07:41
RE: RouteConverter and Mac OS X - by hvdwolf - 31.10.2010, 19:22
RE: RouteConverter and Mac OS X - by hvdwolf - 01.11.2010, 18:45
RE: RouteConverter and Mac OS X - by hvdwolf - 02.11.2010, 23:15
RE: RouteConverter and Mac OS X - by hvdwolf - 03.11.2010, 17:22
RE: RouteConverter and Mac OS X - by hvdwolf - 03.11.2010, 21:44
RE: RouteConverter and Mac OS X - by hvdwolf - 05.11.2010, 20:32
RE: RouteConverter and Mac OS X - by hvdwolf - 06.11.2010, 17:54
RE: RouteConverter and Mac OS X - by hvdwolf - 09.11.2010, 21:16
RE: RouteConverter and Mac OS X - by hvdwolf - 12.11.2010, 18:04
RE: RouteConverter and Mac OS X - by hvdwolf - 13.11.2010, 08:29
RE: RouteConverter and Mac OS X - by hvdwolf - 14.11.2010, 17:24
RE: RouteConverter and Mac OS X - by hvdwolf - 15.11.2010, 22:43
RE: RouteConverter and Mac OS X - by Gerwin - 15.11.2010, 19:18
RE: RouteConverter and Mac OS X - by Gerwin - 16.11.2010, 18:46
RE: RouteConverter and Mac OS X - by Gerwin - 17.11.2010, 10:19
RE: RouteConverter and Mac OS X - by hvdwolf - 18.11.2010, 22:53
RE: RouteConverter and Mac OS X - by hvdwolf - 20.11.2010, 21:45
RE: RouteConverter and Mac OS X - by hvdwolf - 21.11.2010, 08:30

Forum Jump:


Users browsing this thread: 2 Guest(s)