-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main Class Errors when trying to execute slicer #6
Comments
A further try of executing the benchmarks with
|
Hi, I think that you are trying to run the slicer on Windows. Fortunately, I did this. So I'm attaching another script, for windows, |
Hi, thanks for the advice. I only tried running the slicer on Linux (ArchLinux), though. |
Right, I thought you were on Windows because I had the same error before. |
Hi Lukas, thank you for considering using Slicer4J in your work!
For this command, the JVM cannot find the soot.Type class because the class path is not written properly. It should be like this if you are running from SliceMe folder:
or this if you run from the main Slicer4J directory
As for the script not working, I suspect the instrumentation didn't work for some reason, it could be related to the location of installation of DynamicSlicingCore, as the script refers to that location to fetch the classes to be injected in the instrumented JAR. The DynamicSlicingCore should be installed in the parent directory of Slicer4J:
Please let me know if that's your directory structure and the script is still not working. |
Hello Khaled, thank you for your reply. I finally managed to execute the SLicer4J by using the python script. Also, It seems like my mistake was to rename the top level directories Thank you for your hints. I'll be sure to cite you correctly if I'm able to integrate this tool into my project. |
Hello,
first off, thank you very(!) much for your contribution. I am a student at Graz University of Technology and I am currently working on my Master's thesis which deals with test suite reduction. For my approach I need to compute dynamic slices of Java programs and thus I was very happy when I found out that this tool was published just weeks before I started with my project. I'll make sure to cite your publication and give proper credit to you in my thesis!
Unfortunately though, as of now, I cannot seem to get the slicer working. Some words on my environment: I use Archlinux and I tried everything with JDK 11 and 16 but there's no difference in behaviour.
I tried to follow the Readme to produce a dynamic slice of the
SliceMe
program. For that I conducted the following steps:mvn -Dmaven.test.skip=true clean install
for both, thecore
and theSlicer4J
repocd
'd tobenchmarks/SliceMe
and performed amvn clean install
there to get thetarget/sliceme-1.0.0.jar
.Then I first tried to run the provided python script for Slicer4J:
which provided the following output:
I also tried to run the Slicer4J jar directly as described in the Readme (with the
-h
option just to verify if the program actually works):which yielded the following error message:
Please note that I translated parts of the error message from German to English so they might not be a 100% equal to the actual english output.
It could very well be an error on my end but I can run every other Java program correctly on my system.
Anyway, I'd be glad if you could help me. Thanks a lot again.
The text was updated successfully, but these errors were encountered: