Here's how to get your own CORBA Count program running:
Download and install JDK 1.2, available from the Java Developer Connection here (you must join their developer program, but that's free).
Download the idltojava compiler, available from JDC here. Install into a directory in your path (\jdk1.2beta2\bin, for example).
Create a directory Count, download the zip file, and extract it. Or you can download or look at the files individually below.
Run idltojava -fno-cpp Count.idl. This will create a subdirectory called Counter and generate the stub, skeleton, helper, and holder files.
Compile each of the java programs in the Count directory: javac CountServer.java, javac CountClient.java, CountCorbaApplet.java (if desired).
Start the CosNaming service: start tnameserv
Start the server: start java CountServer
Run the client program: java CountClient.java, or use appletviewer: appletviewer Count.html. Warning: you will have to set network access to unrestricted in File...Properties.
That's it. The server and naming service are still running, so you can run the client as often as you would like.
From Orfali/Harkey Client/Server Programming with Java and CORBA, modified for JDK 1.2