<div dir="ltr"><div>Hi </div><div>1) Check if MapGuideJavaApi.dll is in java.library.path (on Windows the easiest way is put MapGuideJavaApi.dll directory in system path).</div><div>2) Check if JVM and Mapguide are both 64 bit (or both 32bit)</div><div><br></div><div>Remember that if MgInitializeWebTier call fails the first time, any other subsequent call do nothing, and the MapguideApi.jar is not loaded in classpath, so any reference to a class inside the jar will throw a ClassNotFoundException. </div><div><br></div><div>Riccardo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-27 18:31 GMT+01:00 Flipper <span dir="ltr"><<a href="mailto:scotth@mpowerinnovations.com" target="_blank">scotth@mpowerinnovations.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have an old coldfusion Mapguide app that I wanted to keep maintained.<br>
its coldfusion 11 64 bit on Java 1.8 JRE I can't even get past<br>
MgInitializeWebTier.<br>
Trying to run Lines 4-5 Seperately on any other version gets the Object and<br>
dumps its methods on 3.0 it can't even retrieve the Object.<br>
<br>
1<cfset webconfigloc = "C:\Program<br>
Files\OSGeo\MapGuide\Web\www\webconfig.ini"><br>
2<cfset MapGuideJavaApi =<br>
createObject("java","org.osgeo.mapguide.MapGuideJavaApi")><br>
3<cfset x = MapGuideJavaApi.MgInitializeWebTier('C:\Program<br>
Files\OSGeo\MapGuide\Web\www\webconfig.ini')><br>
4<cfset<br>
mgUserInformation=createObject("java","org.osgeo.mapguide.MgUserInformation")><br>
5<cfdump var="#mgUserInformation#"><br>
<br>
I've copied all the C:\Program Files\OSGeo\MapGuide\Web\Tomcat\bin<br>
(except the MapGuideJavaApiEx.dll) into the cfusion/lib folder as well as<br>
the MapguideApi.jar, commons-codec-1.3.jar, and commons-fileupload-1.0.jar<br>
files.<br>
<br>
In the past this is all that was needed..I don't know if their are more<br>
dependancies or if Java 1.8 64 bit isn't compatible anymore<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/What-Java-version-is-needed-for-Mapguide-3-0-tp5232882.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/What-Java-version-is-needed-for-Mapguide-3-0-tp5232882.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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><font face="courier new, monospace">Riccardo Pucci</font></div><div><span style="color:rgb(0,0,0);background-color:rgb(245,245,245)"><font face="courier new, monospace">Geoweb Italia S.r.l.</font></span><br></div></div></div>
</div>