... the user friendly GPS tool


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter and Mac OS X
(26.08.2010, 13:49)routeconverter Wrote:
(26.08.2010, 10:57)hvdwolf Wrote:
(25.08.2010, 21:12)routeconverter Wrote: Did you try my Java6Check jar on your machine?
Yes, I did. But as mentioned I'm now on Snow Leopard and I don't have Java 1.5 anymore. So it works for me.

Sorry, I wasn't precise: did you integrate the Java6Check into your shell script? I'm planning to spend some time to get exactly your ZIP layout since a lot of Mac OS X users ask me how to use RouteConverter and I'm tired of explaining the -XStartOnFirstThread stuff Wink

Yes, I already did that. I built a mini-Applescript application that shows a graphical popup in case the java version is too low: see attached image.
the script itself is:
Code:
#!/bin/sh
BASEDIR=`dirname $0`
if `exec java -jar $BASEDIR/Java6Check.jar`; then
   # No error, java version >= 1.6.0_14
   echo "java version >= 1.6.0_14"
   exec java -XstartOnFirstThread -jar $BASEDIR/RouteConverterPrereleaseMac64.jar
else
   # java version < 1.6.0_14
   echo "java version < 1.6.0_14"
   open error_message.app
   exit 1
fi
the echo commands are not really neccessary but if a user whould open the application from the command line like "open RouteConverter64.app" it would also echo to terminal.
Note: I used the "RouteConverterPrereleaseMac64.jar" but that can be replaced off course. Both in the script and the application.

The structure of the Application now is (I removed unnecessary listing info):
Code:
ls -lR RouteConverter64.app
RouteConverter64.app/Contents:
       Info.plist
       MacOS
       Resources

RouteConverter64.app/Contents/MacOS:
        Java6Check.jar
        RouteConverterPrereleaseMac64.jar
        error_message.app
        routeconverter

RouteConverter64.app/Contents/Resources:
       RouteConverter.icns


1 - I wrote this simple applescript application (10 minutes work), but I don't know whether your application does shows a (graphical) error message of it's own as I can't test that right now. Does it?
If it does we can remove my error_message.app, which I really like to do. It's not nice to mix up a real Java application with an applescript application. To me it doesn't feel right.
If your Java6Check.jar shows it's own graphical message the script could change to:
Code:
#!/bin/sh
BASEDIR=`dirname $0`
if `exec java -jar $BASEDIR/Java6Check.jar`; then
   # No error, java version >= 1.6.0_14
   echo "java version >= 1.6.0_14"
   exec java -XstartOnFirstThread -jar $BASEDIR/RouteConverterPrereleaseMac64.jar
else
   # java version < 1.6.0_14
   echo "java version < 1.6.0_14"
   exit 1
fi
2 - I did not make a patch or something like that yet. It's easy to do but I like to know how you think about it, especially in case your jar show it's own message already.
3 - Just in case I added the error_message.app in a zip and the message itself


Attached Files Thumbnail(s)
   

.zip   error_message.zip (Size: 24.2 KB / Downloads: 641)
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)