does your classpath include the directory with the mapguide java classes?<br><br>ie something like<br><br>C:\Program Files (x86)\OSGeo\MapGuide\Web\Tomcat\bin<br><br>or<br><br>C:\\ProgramFiles\\MapGuideOpenSource\\WebServerExtensions\\Tomcat\bin";<br>
<br>did you install with the java option?<br><br><div class="gmail_quote">On 28 July 2010 01:29, maiko <span dir="ltr"><<a href="mailto:ws.hhht@gmail.com">ws.hhht@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I keep getting errors:<br>
<br>
error no MapGuideJavaApi in java.library.path<br>
java.lang.UnsatisfiedLinkError: no MapGuideJavaApi in java.library.path<br>
<br>
<br>
The following mycode:<br>
<br>
public static void test() {<br>
try {<br>
String realpath = "C:\\Program<br>
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\";<br>
String configPath = realpath + "webconfig.ini";<br>
System.out.println("configPath:"+configPath);<br>
MapGuideJavaApi.MgInitializeWebTier( configPath );<br>
System.out.println("InitDone");<br>
MgUserInformation userInfo = new MgUserInformation("Anonymous", "");<br>
System.out.println("userInfo Done"+userInfo);<br>
<br>
MgSite site = new MgSite();<br>
System.out.println("Site done"+site);<br>
<br>
site.Open(userInfo);<br>
System.out.println("site open");<br>
<br>
String sessionId = site.CreateSession();<br>
String title = "JSP Samples";<br>
}<br>
catch (Exception e) {<br>
System.out.println("Exception");<br>
e.printStackTrace();<br>
}<br>
}<br>
<br>
<br>
This is an example of<br>
<br>
why?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/mapguide-problem-tp5342641p5342641.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/mapguide-problem-tp5342641p5342641.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zac Spitzer <br>Solution Architect / Director<br>Ennoble Consultancy Australia<br><a href="http://www.ennoble.com.au">http://www.ennoble.com.au</a><br><a href="http://zacster.blogspot.com">http://zacster.blogspot.com</a><br>
+61 405 847 168<br><br><br><br>