<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear List,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have some experience using Mapserver CGI
but am a newie to Java Manpscript. I tried to compile my
first program in windows XP with the error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=1>import edu.umn.gis.mapscript.*;</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1>public class mapscript_basic {<BR>
public static void main(String[] args) {<BR>
System.loadLibrary("mapscript");</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1> mapObj
mapobject;<BR> imageObj
mapimage;<BR> String mapfile;</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1> // set the map file
to use<BR> mapfile =
"global.map";<BR> </FONT></DIV>
<DIV><FONT face=Arial size=1> // create a mapObj,
initilized with the mapfile above<BR> mapobject =
new mapObj(mapfile);</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1> // create an imgObj
that has an image of the map<BR> mapimage =
mapobject.draw();</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1> // save the mapimage
to a file<BR>
mapimage.save("worldmap.png",mapobject);</FONT></DIV>
<DIV><FONT face=Arial size=1> }</FONT></DIV>
<DIV><FONT face=Arial size=1>}</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>Error:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>mapscript_basic.java:1: package
edu.umn.gis.mapscript does not exist</FONT></DIV>
<DIV><FONT face=Arial size=2>......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In fact, I have placed the two library files
mapscript.jar and mapscript.dll in the folder JAVA_HOME\lib and set the env
variable CLASSPATH to JAVA_HOME\lib.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial>I got the files from the ms4w download
ver 2.2.6. The library files are located at the folder </FONT><FONT
face=Arial>C:\ms4w\Apache\cgi-bin\mapscript\java.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=1><FONT size=2>Any help to solving the problem
will be greatly appreciated</FONT>.</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=2>Peter</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV></BODY></HTML>