Using the Java Gateway Wizard
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:
-
Start Studio.
-
From the Tools menu, point to and click Add-Ins.
-
Click Java Gateway Wizard to start the Java Gateway Wizard dialog.
-
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
or
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
-
Enter the Host and Port for the Java Gateway server.
-
Enter Classpaths and Exclusions as instructed in the dialog.
-
If you select a Jar File in Step 4, you can click View to see a list of the classes in the jar file.
or
If you enter a Class Name in Step 4, continue to the next step.
-
Click Import to generate Ensemble proxy classes. The wizard displays the class name as it generates each proxy class.
-
When the import operation is complete, click Finish to exit the wizard.