[mapserver-users] Java Wrapper for mapserver

Harald Wehr hwehr at hs-harz.de
Wed Feb 20 22:49:28 PST 2002


Steve Lime wrote:

> I've talked to the PHP folks and we will add an imageObj to the main mapscript to maintain compatability between them.
> 
> One other thing, I've had no problem getting the shared library to compile but am having a heck of time compiling the java class files. With swig I do a:
> 
>   swig -java -shadow -package mapscript mapscript.i
> 
> but when compiling even a simple class like colorObj.java javac whines about not being able to resolve mapscript.whatever. Seems to be hung on the package name. Anyway, I'm not a java guru and am trying to write a Makefile based procedure to add to the distribution. I realize there are other hacks that have to be made to the .java files (will try to script those) but obviously I'm doing something stupid if I can't even get the most simple file to build. Note that I'm moving all of the .java files into their own directory apart from the C stuff. Ideas?

Hi Steve,

can you give the exact error message? When you "swigg" mapscript to
java-files as package "mapscript" they all must be in a directory
called "mapscript". Then you compile with:

javac mapscript/*.java

and it should work.

Harald




More information about the MapServer-users mailing list