SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
208 stars 106 forks source link

Could not find or load main class fr.inria.main.evolution.AstorMain #222

Closed crimsonfan closed 4 years ago

crimsonfan commented 4 years ago

I followed the option 1 trying using jkali mode but got the message "Could not find or load main class fr.inria.main.evolution.AstorMain". My command is "java -cp astor.jar fr.inria.main.evolution.AstorMain -mode jkali -location /d/Project/NewFolder2/astor/target/classes/fr/inria/main/evolution". Need help. Thanks.

martinezmatias commented 4 years ago

Hi @crimsonfan
Are you executing the command in the same folder that the file 'astor.jar' is located?

I have just try the command and I works. I can reproduce the error when I execute the command from other folder that the one having the jar. So, candidate solutions: execution the command on the same folder or use an absolute path.

crimsonfan commented 4 years ago

Thanks a lot, I solved it