4
4
Before you begin, the JAVA_HOME environment variable must be properly set
5
5
and the Java programs "java" and "javac" must be on your path.
7
To generate the SWIG wrappers you need swig > 1.3.24.
9
+----------------------------------------------------------------------------+
10
| IMPORTANT API CHANGE: swig 1.3.24 introduced a new way of wrapping |
11
| enumerations in Java which breaks compatibility with the mapscript |
12
| generated by previous versions of swig. |
13
| This will change again in the next major version of mapserver (version 5). |
14
+----------------------------------------------------------------------------+
19
The complete reference documentation is available on-line:
21
http://mapserver.gis.umn.edu/docs/reference/mapscript
10
30
MapServer releases, beginning with 4.2.4, contain pre-generated wrapper code
11
(mapscript/java/mapscript_wrap.c) and class files (mapscript/java/edu). You
12
may generate your own using the "interface" target in the Java Makefile.
31
(mapscript/java/mapscript_wrap.c) and class files (mapscript/java/edu).
32
Nevertheless it is recommended that you generate your own using the "interface"
33
target in the Java Makefile.
35
Requires swig > 1.3.24. Version 1.3.28 or 1.3.29 are recommended.
17
40
After MapServer is configured and compiled, change directory to the Java
18
mapscript location and execute::
41
mapscript location and execute:
20
43
$ cd mapscript/java
24
Copy the shared libmapscript and mapscript.jar to the appropriate location.
46
$ make test (optional)
47
$ make threadtests (optional)
49
The 'make interface' step is optional, but strongly recommended, see 'SWIG Wrappers'
50
above for the details.
52
Copy libmapscript.so and mapscript.jar to the appropriate location.
35
63
nmake /f makefile.vc
36
64
nmake /f makefile.vc test
66
International language support
67
------------------------------
69
Since May 2006 Java mapscript has complete support for international languages
70
usage in queries and mapscript internals. To document this improvement
71
we have created the examples/QueryByAttributeUnicode.java
72
test program which uses the ISO-8859-15 encoding.
74
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1753
75
http://thread.gmane.org/gmane.comp.gis.mapserver.user/19298/focus=19298
76
http://thread.gmane.org/gmane.comp.gis.mapserver.user/19213/focus=19213
81
Java mapscript related:
83
http://mapserver.gis.umn.edu/docs/howto/javamapscript
84
http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55
85
http://mapserver.gis.umn.edu/docs/faq/thread_safety
89
http://mapserver.gis.umn.edu/docs