Use Rational Rose Reverse Engineering (java) to generate class diagrams (tutorials and error solutions) and rational Reverse Engineering

Source: Internet
Author: User

Use Rational Rose Reverse Engineering (java) to generate class diagrams (tutorials and error solutions) and rational Reverse Engineering

When the project framework project code is obtained but there is no uml diagram, it is not easy to see the call relationship function flow between methods. How to generate a class diagram? The methods in the memory are as follows: 1. rose reverse engineering, 2. together

Rose has it. It was removed a few days before together, so you can use ROSE to find out the following steps. You don't need to read it if you know it. It's rough :)

1. Create a new ROSE project and select the J2EE template,
2.


3. on the displayed page, ADD the source code directory to the CLASSPATH, ADD the supported packages, and click 'add recursion' to 'select all' to 'verse'. After the installation is complete, no prompt is displayed, click 'done' to end. The reverse engineering is completed.

4. class diagrams will not be automatically generated after reverse engineering, but corresponding packages and classes will be automatically generated according to your java Package Structure in the logical view and component view, create a class chart as required. Next we will display all the classes under the selected package in the new class diagram:

Create a CLASS digoal in ROSE, drag the CLASS packages one by one to the right graph, and click 'add class' under 'query' on the menu to confirm.

Rational Rose Reverse Engineering (java) FAQ:

1. During rose reverse engineering, the attribute type is as follows: Logical View: java: lang ::
Solution:
Menu> Tools> Java/j2ee> Project
Select Fundamental Type page
Remoe Common JDK Classes
Add Common JDK Classes
OK. It may be a Rose Bug.

2. errors are reported during rose reverse engineering. Generally, some packages are not referenced in the class.

In the menu view-log selected to see the log window error information, generally may not find the class, you in tools-java/j2ee-project specification set items related to the project, for example, classpath.
Solution:
Menu> Tools> Java/j2ee> project specification
Select the Class Path page and add the corresponding package.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.