Home Step 03 Step 05

Remote debugging tutorial

This tutorial is a feature of JBuilder Enterprise.

Step 4: Compiling the server and copying server class files to the remote computer

This step tells you how to compile the server and copy the server class files to the remote computer.

To compile the server files in JBuilder, choose Project|Rebuild Project SimpleRMI.jpr. The project is built.

Notice that an expand/collapse icon is displayed by SimpleRMIImpl.java in the project pane. The RMI compiler created the stub class, SimpleRMIImpl_Stub.java. Do not edit this file.

Go to a DOS window and look in the samples\RMI folder. The folder should now contain a classes folder. The classes folder contains a hierarchy of folders that follow the package structure. The server class files are stored in the com\borland\samples\rmi folder. The classes folder also includes the dependency cache and Generated Source folders.

You need to copy the server class files to the remote computer. For the purposes of this sample, you can copy the entire RMI folder to the remote computer, to a new folder called RMI. To do this, you can either:

Note: From this point forward, if you update source files on your client computer (the one running JBuilder), you must re-copy the .class files to the remote computer. If you fail to do so, your source files and compiled files will not match, causing invalid errors.

In the next step, you'll start the RMI Registry and the server on the remote computer.

Home Step 03 Step 05