-
-
Notifications
You must be signed in to change notification settings - Fork 111
Description
Hello, I’m currently a bit stuck with trying to use jGenprog to fix a bug from defects4j.
I have installed astor and successfully run the jGenprog example code from getting started. (With the following)
cd examples/Math-issue-280
mvn clean compile test -DskipTests # compiling and running bug example
cd ../../
java -cp target/astor-*-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes/ -location /home/user/astor/examples/Math-issue-280/ -dependencies examples/Math-issue-280/lib
I have also installed and successfully run the defects4j example. I have checked out, compiled and tested using the example code on their git.
Now to the problem. I have checked out and compiled bug 40 from Math in defects4j and stored the bug in /tmp/bug/40/ and when I try to run jGenprog using this the command below, I get following error:
Error: Could not find or load main class fr.inria.main.evolution.AstorMain
The command used
sudo java -cp /home/project/astor-*-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes/ -location /tmp/math/40 -stopfirst true
I have compiled the bug folder using the compile command in defects4j and mvn clean compile test -DskipTests. Have encountered the same error in both cases.
Does anyone know what might be the issue?
Any advice on how to extract bugs from defects4j and create and verify patches using jGenprog would be appreciated.