| 1 |
|
| 2 |
README.java for mkgmap |
| 3 |
|
| 4 |
* java versions |
| 5 |
|
| 6 |
Version 1.6, or later, of java is required to run mkgmap. |
| 7 |
|
| 8 |
** Mac hints |
| 9 |
|
| 10 |
Mac OS X 10.5 comes with Java 1.5. You can install 1.6 from |
| 11 |
http: |
| 12 |
|
| 13 |
After installing, set 1.6 as the default using JAVA preferences, which |
| 14 |
will cause 'java -jar foo.jar' to use the 1.6 JRE. To cause ant to |
| 15 |
use 1.6 to compile, set |
| 16 |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/home |
| 17 |
|
| 18 |
* building |
| 19 |
|
| 20 |
To build, you must have a JDK and apache ant installed. |
| 21 |
Then, just run "ant", which will produce dist/mkgmap.jar. |
| 22 |
|
| 23 |
- Installing ant on Windows 95, XP, NT [Barest Basics: PLEASE REVIEW ME] |
| 24 |
Download the latest Apache Ant binaries from http://ant.apache.org |
| 25 |
Unzip the contents to C:\ANT - at least the bin and lib folders must be directly under c:\ANT |
| 26 |
Set the environment variables: |
| 27 |
Start -> Settings -> Control panel -> System -> Advanced -> Environment Variables |
| 28 |
|
| 29 |
VARIABLE VALUE (example) EXPLANATION |
| 30 |
|
| 31 |
Path C:\ANT\bin Add the path to bin to the other paths already there |
| 32 |
ANT_HOME C:\ANT Create a new variable with the path to your ANT |
| 33 |
JAVA_HOME C:\Program Files\Java\jdk1.6.0_14 The path to JDK |
| 34 |
CLASSPATH Should be empty, if it is not run ANT with -noclasspath |
| 35 |
|
| 36 |
Run ANT from the same directory where your build.xml file is located. |
| 37 |
Open a shell (cmd.exe)- navigate to the directory of build.xml, |
| 38 |
type "ant" or "ant -noclasspath" if CLASSPATH is not empty |
| 39 |
press <ENTER> |
| 40 |
If all else fails read the manual (your\path\to\Ant\docs\manual\index.html "Installing Ant" ;-} |
| 41 |
|
| 42 |
- Installing ant on Linux |
| 43 |
Install via your distribution package manager. |
| 44 |
|
| 45 |
* running |
| 46 |
|
| 47 |
To run, you must have a JRE installed. See README.invoking and |
| 48 |
README.examples. You can use a downloaded jar or one that you built. |