Using the Java Gateway
Using the Java Gateway Wizard
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Using the Java Gateway Wizard
You can import a Java class or an entire .jar file using the Java Gateway wizard built into Studio. To start the wizard:
  1. Start Studio.
  2. From the Tools menu, point to and click Add-Ins.
  3. Click Java Gateway Wizard to start the Java Gateway Wizard dialog.
  4. Click Jar File and either enter the path name or click Browse to find the appropriate .jar file. For example, the following is the name of a sample jar file included with Ensemble, where MyEnsemble is the name of the install directory:
    C:\MyEnsemble\dev\java\samples\remote\test\javagatewaysamples.jar
    Click Class Name and either enter the full path name or click Browse to find the appropriate Java class file. For example, the following is the name of a sample Java class included with Ensemble, where MyEnsemble is the name of the install directory:
    C:\MyEnsemble\dev\java\samples\remote\test\Address.class
  5. Enter the Host and Port for the Java Gateway server.
  6. Enter Classpaths and Exclusions as instructed in the dialog.
  7. If you select a Jar File in Step 4, you can click View to see a list of the classes in the jar file.
    If you enter a Class Name in Step 4, continue to the next step.
  8. Click Import to generate Ensemble proxy classes. The wizard displays the class name as it generates each proxy class.
  9. When the import operation is complete, click Finish to exit the wizard.