<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi all,</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> I use Soot to process a project, let's say Apache Mahout. I got stuck in selecting the correct file path. </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> First, I have the compiled class files, the only reason that I start from source code is I want to obtain the location tag. If we start from class files,we only locate to source line instead of a position. right? </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">
<ul>
<li><span style="font-size: 10pt;">CASE 1 [indirect file path(project directory)]</span></li>
</ul>
</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> I use the following, set the directory to project directory, it requires .class files</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">-src-prec java -cp "my libraries" -process-dir "/Downloads/mahout/" -f none </div>
</blockquote>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> The error message goes like:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p><span>java.lang.RuntimeException</span>: Error: couldn't find class: examples.src.main.java.org.apache.mahout.cf.taste.example.bookcrossing.BookCrossingBooleanRecommender are the packages set properly?</p>
</blockquote>
</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> I am a bit of confused that I start from .java, how can I have the .class files?</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">
<ul>
<li><span style="font-size: 10pt;"> CASE 2 [use a specific directory]</span></li>
</ul>
If I use a specific direcotry</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>-src-prec java -cp "my libraries" -process-dir "/Downloads/mahout/mr/src/main/java" -f none</span></div>
</blockquote>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span> It can process the source, but it got exception, due to lack of dependency.</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span> </span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span> Thus, how to set the path, if I want to process the whole project. Thanks in advance.</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>Best</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span>Chris.</span></div>
</body></html>