Book a Demo

Author Topic: Use Java Standard Library in UML Diagrams  (Read 3408 times)

ronak2121

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Use Java Standard Library in UML Diagrams
« on: August 07, 2007, 09:11:10 am »
Hi all,

I am making a UML design of my Java application and I need to use some of the Types defined in the Java standard library.

How can I get those types? Or do I have to reverse engineer the whole rt.jar file into EA?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Use Java Standard Library in UML Diagrams
« Reply #1 on: August 07, 2007, 11:43:16 am »
Quote
...I need to use some of the Types defined in the Java standard library...do I have to reverse engineer the whole rt.jar file into EA?

Yes, I'm afraid you do have to. You can probably use less than the "whole" runtime if you can find a 'smaller jar' that contains all you want.

The good news is that EA seems to handle this pretty well.

David

PS: Search this forum for a few ideas on this subject.
No, you can't have it!

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Use Java Standard Library in UML Diagrams
« Reply #2 on: August 07, 2007, 03:18:44 pm »
If you open the main jar file in an archive utility like WinZip, you should be able to extract out the individual classes/packages you want to import to a temporary directory.  Once you've extracted everything you want, import the class files into EA using the "Import Source Directory" command (you can specify language "Java", file extension ".class").  That should minimise the amount of unwanted classes that you import into your model.

HTH.

ronak2121

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Use Java Standard Library in UML Diagrams
« Reply #3 on: August 08, 2007, 04:10:16 am »
Thanks for your help.

I did that and it worked beautifully.