[mapguide-users] mapguide problem?
Zac Spitzer
zac.spitzer at gmail.com
Wed Jul 28 21:57:44 EDT 2010
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 <ws.hhht at gmail.com> 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
> mapguide-users at lists.osgeo.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100729/729d2d26/attachment.html
More information about the mapguide-users
mailing list