When importing Java code, you can specify names of .jar
files, and Rational® Rhapsody® will
use the information in the .jar files to model external classes and
interfaces that your code uses.
About this task
By default, if you import Java code that contains import
statements that reference external classes and interfaces, IBM® Rational Rhapsody creates
external elements for the referenced classes and interfaces but the
representation in the model is partial due to the limited amount of
information contained in an import statement. For example, the model
does not indicate whether the element is a Java class or interface.
You can import more detailed information into your model by specifying
the location of the relevant .jar files.
To specify the relevant
.jar files:
Procedure
- Select from the main menu.
- Click Advanced... to display the Reverse
Engineering Advanced Options window.
- On the Preprocessing tab, click Add....
- Make sure that the Add Symbol radio
button is selected.
- Select the JAR File radio button and then click Browse...
to select a .jar file.
- Click OK to add the file and close
the Add preprocessing symbol window, or click Apply to
add the file and continue selecting additional files.