Java Development Kit (JDK) is a platform for developing Java applications. It provides the runtime for running Java applications, as well as the tools that needed for develop, compile as well as debug Java programs. JDK provides a large library that ease the development of the software. During design time you may want to present the JDK classes which used in your model. You probably need to re-create them manually before using it. In this article we will show you how you can reverse engineer JDK’s library into class model using Visual Paradigm for UML, and use them in your class diagrams.
This article split into 2 phrases. The first phrase we will generate class models for JDK in an independent project, and in the second phrase we will use the JDK classes in the independent project in your class diagram by creating project reference to it.
To generate the class models for JDK
- Create a brand new project, name is as JDK Library.vpp
Image may be NSFW.
Clik here to view.Create new project to host JDK classes
- Go to Tools > Code Engineering > Instant Reverse > Java.
Image may be NSFW.
Clik here to view.Select Java Instant Reverse
- Select Add Zip, then specify the path to the src.zip which bundled inside JDK in file chooser.
Image may be NSFW.
Clik here to view.Add src.zip in JDK for Instant Reverse
- Make sure Reverse source on demand is selected, then press OK.
Image may be NSFW.
Clik here to view.Select Reverse on demand
- Now go to Class Repository tree and expend the Instant Reverse tree node.
- Right click on the src.zip, and select Reverse “src.zip” to Class Repository.
Image may be NSFW.
Clik here to view.Reverse JDK Classes to Class Repository
- After that the classes of JDK will be reversed into the project.
Image may be NSFW.
Clik here to view.JDK Classes reversed to Class Repository
- Save your project and now it is ready to use in your own class model.
Image may be NSFW.
Clik here to view.Save project
To use the JDK classes you reversed
- Right click on the blank area of the Model Explorer, and select Manage Reference Project…
Image may be NSFW.
Clik here to view.Manage Reference Projects
- Press Add button, then locate the JDK Library.vpp you created in the previous steps.
Image may be NSFW.
Clik here to view.Add JDK Library.vpp as reference project
- Once the JDK project is added, press Close to proceed.
Image may be NSFW.
Clik here to view.Close Manage Reference Project dialog
- After that you will see the JDK classes showing in Model Explorer.
Image may be NSFW.
Clik here to view.JDK Classes showing in current project
You can then use them by drag & drop into our diagram, or select it as the datatype of your model.
Clik here to view.

Drag & Drop JDK classes from reference project to curent project
Clik here to view.

Use JDK Classes as datatype
You can download the project file which contain all classes reversed from JDK7 at the link below.
Download Visual Paradigm Project File for JDK7 Class Models
Related Know-how |
Related Links |