Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling map from java

Status
Not open for further replies.

rmareedu

Programmer
Jun 4, 2003
1
US
Any one know how to call a mercator map form java.
Thanks
 
This is Mercators example of a simple call to a map.

* This class is used to show how to call a Mercator Map from Java.
*
*
*/
public class SimpleExample
{

public static void main( String argv[] )
{
// instantiate a map object
CompiledMap myMap;
myMap = new CompiledMap(".\\Map\\sdq.mmc");

// run the map
myMap.LaunchMap();

// display the results
System.out.println( "Map : " + myMap.getMapName() );
System.out.println( "Return : " + myMap.getErrNum() );
System.out.println( "Message : " + myMap.getErrMsg() );
}

}
 
Hi janhes,

My ? is ...

// run the map
myMap.LaunchMap();

How you are calling LaunchMap() method.

I d't think .mmc file contains any methods.

Can you please tell me how it work's out.

Thank's
Nar


reddy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top