I did it myself a couple of times. You can download the source code for the Java runtime and reconstruct, but in addition to the source code, EA can import several binary formats, including Java bytecode.
Right-click the package in the project browser, select "Code Engineering" - "Import Binary Module", then go to rt.jar. Make sure that you choose not to create diagrams for imported classes. When importing this size, it will take a long time, and I think that EA might also run out of memory. Even without charts, you will have enough time to drink coffee. Or lunch.

EA is likely to run into a couple of import issues, but nothing more than a handful of rt.jar in everything, so overall it works very well.
Of course, you are importing one very specific version of the runtime that you need to know about when you use classes. There is nothing stopping you from importing several versions of the runtime over time, but you will need to keep track of which one you use in each case.
There is a convenient function there for recursively determining the version identifier, which can help. Right-click the package, select "Package Management" - "Update Package Status". There you can set the version for all elements to 1.6.0_02, for example.
source share