|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.extn.RegTool
public class RegTool
RegTool is a stand-alone application and an API for registering and unregistering ArcGIS Java extensions.
An example of the API usage of RegTool for registering a Java extension is:
RegTool regTool = new RegTool();
regTool.register("C:\\Folder\\arcgisJavaExt.jar");
RegTool is also a stand alone Java application that can be invoked from
a command interpreter for registering and unregistering Java extensions.
An example of this usage for registering a Java extension (on a Linux computer) is:
$JAVA_HOME/java -classpath $ARCGISHOME/java/lib/arcobjects.jar
com.esri.arcgis.interop.extn.RegTool -v -jar /home/folder/arcgisExtn.jar
| Field Summary | |
|---|---|
static String |
arcEngineHome
|
| Constructor Summary | |
|---|---|
RegTool()
Constructs a RegTool instance |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
The main method of the RegTool application |
void |
register(String jarPath)
Registers ArcGIS Java extensions. |
void |
unregister(String jarPath)
Unregisters ArcGIS Java extensions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String arcEngineHome
| Constructor Detail |
|---|
public RegTool()
| Method Detail |
|---|
public static void main(String[] args)
args - the command line argumentspublic void register(String jarPath)
jarPath argument.
In addition to registering the Java extension classes, this method produces a COM type library (.tlb) file with the same name as the jar file and at the same location as the jar file. C++/.Net developers that want to consume Java extensions should program against this type library file.
Once registered, neither the jar file nor the type library file should be moved from their original location.
jarPath - the absolute path to the jar file containing ArcGIS Java extensions classesRegTool.unregister(String)public void unregister(String jarPath)
jarPath argument.
In addition to unregistering all ArcGIS Java extension classes, this method also deletes the COM
type library file (.tlb) generated by the register method
jarPath - the absolute path to the jar file containing ArcGIS Java extension classes.RegTool.register(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||