logo separator

[mkgmap-dev] Sea Polygons and java 1.6

From Greg Troxel gdt at ir.bbn.com on Sat Aug 22 18:58:35 BST 2009

I have a newish macbook pro, bought around January of 2008.  It had
10.5, and java 1.5.  I was able to download java 1.6 from apple, but
apparently that only works for intel 64-bit macs (which means "amd64",
think).  But, setting the preference only changes the JRE, and
apparently our ant build looks for installations and uses them in the
wrong order.

I have not had luck with openjdk on netbsd with josm, and should try
splitter and mkgmap.  My general impression has been that one really
needs a sun jre/jdk for most things, but it would be great if that is
changing.

I don't know how many people there are running mkgmap on macs that don't
support java 1.6.  splitter already needs 1.6, so as much as I hate to
require bleeding edge (1.6 is bleeding edge because the standard mac os
doesn't have it yet, even if it's been a while :-), I don't see any
reason not to require 1.6.


Here's a patch to doc/README.java:


Index: doc/README.java
===================================================================
--- doc/README.java	(revision 1142)
+++ doc/README.java	(working copy)
@@ -7,8 +7,20 @@
 The main version of java for which mkgmap is tested is 1.6.
 Java 1.5 should also work.
 
+For splitter, 1.6 is required.
+
 TODO: Openjdk 1.7 may work.
 
+** Mac hints
+
+Mac OS X 10.5 comes with Java 1.5.  You can install 1.6 from
+  http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update1.html
+
+After installing, set 1.6 as the default using JAVA preferences, which
+will cause 'java -jar foo.jar' to use the 1.6 JRE.  To cause ant to
+use 1.6 to compile, set
+  export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/home
+
 * building
 
 To build, you must have a JDK and apache ant installed.
@@ -17,4 +29,4 @@
 * running
 
 To run, you must have a JRE installed.  See README.invoking and
-README.examples.
+README.examples.  You can use a downloaded jar or one that you built.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090822/52cac55d/attachment.bin 


More information about the mkgmap-dev mailing list