• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Classpath in Rational Rose

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to set up the class path in Rational Rose? I added the jdk jar directories to the specification classpath but sill Iam not able to reverse engineer Java code.
Error message received is: [b]15:18:28| Error Resolving qualified name String occurred in File C:\Rational\Files.java
[b]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shankar,
Which version of Rational Rose are you using?
Why are you trying to use Rational Rose to reverse engineer Java code? In my experience Rational Rose 98i is not very good at this. It gives a lot of errors. May be you should try some other tool.
To reverse engineer Java code, you should also add the JRE directories to CLASSPATH in addtion to installdir\Rational\Java directory. Also, you should have the intalldir\Rational\Java, installdir\Rational\common directories in your PATH variable.
I think that will work.
Sanjib.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For Rose2000 J, your autoexec.bat should have SET CLASSPATH=[drive]:\jdk[v#]\jre\lib\rt.jar. In my autoexec.bat I have it set as D:\jdk1.3\jre\lib\rt.jar.
You can verify if this path exists in Rose via:
Tools>Java>Project Specification>Class Path>Environment Settings
If not, edit your autoexec.bat and most importantly, reboot your computer.
Once you verify your rt.jar exists in Env.. Settings, go to
Tools>Java>Project Specification>Class Path>Directories and add your "C:\Rational" path.
You are ready to reverse engineer any java file under C:\Rational. Go to Tools>Java>Java Reverse Engineer Java and you should see your rt.jar and C:\Rational folder. You know what to do
Note: I had the correct settings before, and it still did not work. Only when I updated my rt.jar from v1.2.2 to v1.3 did the whole thing work. Took me couple of days, wheew.
For a general idea on Rose RE settings look at: http://cafe.rational.com/HyperNews/get/hn/rosecafe/1977/1.html?nogifs
Good Luck

------------------
~James Baud
Talk, does not cook rice. - Chinese Proverb
 
Shankar Ganesh
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sanjib,
I'm using Rational Rose 2000e.
I have added all these directories (Java & Common under Rational's Home directory, JDK's directories containing JARs, directory containing my code / class, etc.) but is still getting the same error.
Even if I use a simple class, for testing, with just one String attribute in it, the error message is generated (same as pasted in my original message).
Is there any other better tool to reverse engineer from java classes to class diagrams?
Thanks in advance,
Shankar.
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shankar,
Even though the docs say you just need the classpath, I was only able to get it to work after
1. Add the path from the project specification choice under tools/Java
2. Edit this path to actually include the jar (rt.jar)
3. Select the class files necessary (I selected all, and it takes FOREVER) If you find a quicker way for this part - instead of selecting the actual class files you need - please let me know.)
 
reply
    Bookmark Topic Watch Topic
  • New Topic