Closed crimsonfan closed 4 years ago
HI @crimsonfan Thanks for reporting the issue. Could you send me the command line that are you using to launch Astor? Thanks Matias
Thanks for your reply. Here sir.
Thanks. Just to be sure: is the "astor.jar" that one with dependencies (i.e., when you run maven it generates the jar astor-1.0.0-SNAPSHOT-jar-with-dependencies.jar )?
Yes. I changed it name to astor.jar for short.
Dear @martinezmatias,
Do I need to alter the astor.properties? I thought it's be fine if I fill the arguments in command promt
Thanks
Hi @crimsonfan
Do I need to alter the astor.properties?
it's inside the jar. But you can override any property by using the arguments -parameters
(see here: https://github.com/SpoonLabs/astor/blob/master/docs/arguments.md#astor-parameters)
BTY: the log seems it's not correctly finding the JVM to run the test. Using the previously mentioned -parameters
pass the location of the JVM (where the java executable is located) using the key jvm4testexecution
(e.g., -parameters jvm4testexecution:/home/jvm/java8/bin
)
Dear @martinezmatias,
I followed your guides but it said that my jdk folder is invalid: This is my java and javac version: Did I do something wrong in java confirguration?
Many thanks.
Dear @martinezmatias,
I solved it.
Thanks a lot.
Hi @crimsonfan Cool! great! Which was the problem? How could you solve it? Regards Matias
Dear @martinezmatias, I wonder if there is any problems with -jvm4testexecution, when I used it to locate the java8/bin, it didn't reconized the path as jdk folder (JDK folder invalid). And when I didn't use that parameter, the astor chose to run on jre path. So I tried to alter the astor's selection by checking JAVA_HOME, Path in System properties but it was no use. Then I chose to uninstall the jre. The astor had to choose the jdk path as the only option and run. ... my solution somehow is unreasonable and not logical. But that's all I can do.
First of all, thanks for your works. I'm a college student and I'm doing some experiments on your work for my research. I followed your tutorial option 1 and met this problems I have do compile test by maven in examples folder too. I need some suggestions to solve this.
Thanks again.