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
205 stars 106 forks source link

HELP - I ran the command but didn't get any response or even an error #319

Open juliamanfrindias opened 3 years ago

juliamanfrindias commented 3 years ago

When I run the command for example lang_39:

java -cp astor-1.1.0-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/astor/Documents/A3/astor/examples/lang_39/

It doesn't return any answer, it just runs for a while and then finishes without giving any answer. This is what appeared on the console:

[astor@julia-note target]$ java -cp astor-1.1.0-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/astor/Documents/A3/astor/examples/lang_39/
[astor@julia-note target]$

What happened? How to proceed?

ssk1216 commented 3 years ago

https://logging.apache.org/log4j/log4j-2.4/manual/configuration.html Add the above xml file to the astor root folder (log4j2.xml) When you run it , java -cp target/astor-1.1.0-jar-with-dependencies.jar -Dlog4j.configurationFile=/home/linuxadmin/Desktop/astor/log4j2.xml

Idea was from the user-lapplislazuli , and it worked for me

ssk1216 commented 3 years ago

<?xml version="1.0" encoding="UTF-8"?>