wala / WALA

T.J. Watson Libraries for Analysis, with frontends for Java, Android, and JavaScript, and may common static program analyses
http://github.com/wala/WALA
Eclipse Public License 2.0
743 stars 221 forks source link

Running WALA-start on Intellij #249

Open sohah opened 6 years ago

sohah commented 6 years ago

Hello,

I am trying to use WALA for the first time. I cloned WALA-start into intellij. Building went fine but when I tried to run the ScopeFileCallGraph with these arguments -scopeFile /Users/.../helloworld.class -mainClass helloworld

i get the following exception: Exception in thread "main" java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(StringTokenizer.java:349) at com.ibm.wala.util.config.AnalysisScopeReader.processScopeDefLine(AnalysisScopeReader.java:148) at com.ibm.wala.util.config.AnalysisScopeReader.read(AnalysisScopeReader.java:80) at com.ibm.wala.util.config.AnalysisScopeReader.readJavaScope(AnalysisScopeReader.java:53) at com.ibm.wala.examples.drivers.ScopeFileCallGraph.main(ScopeFileCallGraph.java:70)

Any idea what is going on? What is it that i'm doing wrong?

Much appreciated!

bupt01 commented 1 month ago

Has the problem been solved?

msridhar commented 1 month ago

Sorry for never responding on this issue. For the original example, the -scopeFile argument should point to a scope file, not a class file. Does that fix the problem?