<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have some experience using Mapserver CGI 
but&nbsp;am a&nbsp;newie to Java Manpscript. I tried to compile my 
first&nbsp;program in windows XP with the error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>import edu.umn.gis.mapscript.*;</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>public class mapscript_basic {<BR>&nbsp;&nbsp; 
public static void main(String[] args) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.loadLibrary("mapscript");</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapObj 
mapobject;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imageObj 
mapimage;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String mapfile;</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // set the map file 
to use<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapfile = 
"global.map";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // create a mapObj, 
initilized with the mapfile above<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapobject = 
new mapObj(mapfile);</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // create an imgObj 
that has an image of the map<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapimage = 
mapobject.draw();</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // save the mapimage 
to a file<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
mapimage.save("worldmap.png",mapobject);</FONT></DIV>
<DIV><FONT face=Arial size=1>&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face=Arial size=1>}</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In fact, I have placed the two library files 
mapscript.jar and mapscript.dll in the folder&nbsp;JAVA_HOME\lib and set the env 
variable CLASSPATH&nbsp; to JAVA_HOME\lib.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Arial>I got the files from&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=1><FONT size=2>Any help&nbsp;to solving the problem 
will be greatly appreciated</FONT>.</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Peter</FONT></DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=1></FONT>&nbsp;</DIV></BODY></HTML>