This section introduces the basics of writing a CORBA client application. Many of the steps are identical to those required for writing applets. The major difference is that the applet code appears in the init() method rather than in main(). The complete code for the applet version follows shortly (HelloApplet.java).
The basic shell of a CORBA client is the same as many Java applications: You import required library packages, declare the application class, define a main() method, and remember to handle any exceptions.
Start your text editor and save a new file titled HelloClient.java to your project directory. Import the packages required for the client class:
import HelloApp.*; //The package containing our stubs. ...