Skip to main content

alphaWorks  >  Forums  >  IBM Real-Time Class Analysis Tool for Java  >  developerWorks

Need example !!!    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Jan 10, 2007 1:39 PM Last Post By: Threads: [ Previous | Next ]

Posts: 1
Registered: Sep 25, 2006 06:47:41 AM
Need example !!!
Posted: Sep 25, 2006 06:59:47 AM
Click to report abuse...   Click to reply to this thread Reply
Hi. I download ratcat.jar and documents, but it dont work.

i run this:
%Java% -cp "My.jar;ratcat.jar" com.ibm.realtime.programAnalyzer.ReachingClasses my.main(String[]) main.xml

throws exception
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 21 at java.lang.String.charAt(String.java:558) at com.ibm.realtime.classFile.ClassInfo.className(ClassInfo.java:846)

I remove xml file name (main.xml) on end command line:
%Java% -cp "My.jar;ratcat.jar" com.ibm.realtime.programAnalyzer.ReachingClasses my.main(String[])

runned, but not execute my code
Total iterations: 4
8 classes loaded
Total search time: 1.40462921s
Maximum class reading time: 0.172833997s
Total class reading time: 0.183960675s
Total processing time: 2.188s
Total processing time: 2.188s
end

Thats ALL??? How run my java code and Class Analysis???
I read-reread document and not found example.

Posts: 2
Registered: Jan 10, 2007 01:33:59 PM
Re: Need example !!!
Posted: Jan 10, 2007 01:39:42 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
The example is in there - but I agree it's too buried.
It is under the 'Overview' section. I unzipped the document to /tmp (on Linux) and the overview file was:
file:///tmp/doc/overview-summary.html

Note that you might need to specify -d <output directory> to get the Init.java and Init.bin output files, so I did:

java -cp ratcat.jar:hw.jar com.ibm.realtime.programAnalyzer.ReachingClasses -d /home/fultonm/My-Documents/My-Downloads/ 'hw.main([Ljava.lang.String)'

You will need to escape the special characters like ( and ) on Windows differently - you may not need the single quotes around the method name.

I will work on improving this interface and documentation a bit - my apologies.

Point your RSS reader here for a feed of the latest messages in all forums