Closed yuquan1210 closed 2 years ago
There is also the following issue after the project was imported onto Eclipse. Not sure whether the two issues are related.
For the first issue, Try using relative paths?
Regarding errors in Eclipse: all errors seems to stem from the test programs. I would not care too much if gradle works fine e.g. test the command
./gradlew run --args='-c P -cp ./src/test/resources/programs/gcd'
If that works fine, then ignore Eclipse errors.
Problem solved. There are two things to note: One is that in Windows, the classpath separator should be ';' instead of ':', and use single backslash. Second, test programs must be compiled into .class file before testing.
ah, right.
yeah, I am aware of the second problem. I think I have also mentioned this in the ReadMe.
I have imported the project onto Eclipse as specified, and modified default RT_PATH and JCE_PATH according to their locations on my system, but the following command still failed. Some discussions online suggest that Soot cannot handle classpath format like "-cp C:/A.jar:C:/B.jar" on Windows. Do you have any suggestion fix for it? Thank you!
Path modified in Main.java: RT_PATH = "C:\Program Files\Java\jre1.8.0_311\lib\rt.jar"; JCE_PATH = "C:\Program Files\Java\jre1.8.0_311\lib\jce.jar";
Command used: ./gradlew run --args='-c P -cp C:\Users\86138\Documents\GitHub\OPA\analysis-project\src\test\resources\programs\gcd\'
Error Message: