does your classpath include the directory with the mapguide java classes? ie something like
C:\Program Files (x86)\OSGeo\MapGuide\Web\Tomcat\bin or C:\\ProgramFiles\\MapGuideOpenSource\\WebServerExtensions\\Tomcat\bin"; did you install with the java option? On 28 July 2010 01:29, maiko <[email protected]> wrote: > > 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. > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
