[mapguide-users] mapguide problem?

maiko ws.hhht at gmail.com
Tue Jul 27 11:29:20 EDT 2010


I keep getting errors: 

error no MapGuideJavaApi in java.library.path 
java.lang.UnsatisfiedLinkError: no MapGuideJavaApi in java.library.path 


The following mycode:

 public static void test() {
	     try {
	       String realpath = "C:\\Program
Files\\MapGuideOpenSource\\WebServerExtensions\\www\\";
	       String configPath =  realpath + "webconfig.ini";
	       System.out.println("configPath:"+configPath);
	       MapGuideJavaApi.MgInitializeWebTier( configPath );
	       System.out.println("InitDone");
	       MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
	       System.out.println("userInfo Done"+userInfo);
	    
	       MgSite site = new MgSite();
	       System.out.println("Site done"+site);

	       site.Open(userInfo);
	       System.out.println("site open");

	       String sessionId = site.CreateSession();
	       String title = "JSP Samples";
	      }
	      catch (Exception e) {
	         System.out.println("Exception");
	         e.printStackTrace();
	      }
	    }


This is an example of

 why?
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapguide-problem-tp5342641p5342641.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list