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: 's post
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: