Illegal Access Error
See original GitHub issueHi,
When I run java -cp ./instrumentor/build/libs/kelinci.jar edu.cmu.sv.kelinci.instrumentor.Instrumentor -i ../bin -o ../bin-instrumented
I get the following error
Loading dir: ../bin Found file ../bin/sorting_algo/sorting.class Found file ../bin/Driver.class WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by edu.cmu.sv.kelinci.instrumentor.Options (file:/home/amit/dev-work/Cost_Model_NN/new_fuzzing/kelinci/instrumentor/build/libs/kelinci.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of edu.cmu.sv.kelinci.instrumentor.Options WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Exception in thread "main" java.lang.RuntimeException: Error adding location to class path: ../bin at edu.cmu.sv.kelinci.instrumentor.Options.addToClassPath(Options.java:62) at edu.cmu.sv.kelinci.instrumentor.Options.getInput(Options.java:46) at edu.cmu.sv.kelinci.instrumentor.Instrumentor.main(Instrumentor.java:43)
I have tried changing my JDK from 11 to 8 but I still get the same error. Any ideas on how to fix this?
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6
Top GitHub Comments
I solved the problem in this way :
The excpetion was not very clear, so I updated org.ow2.asm from version 5.2 to version 7.2.
It is compiling fine now.
change to java8, worked!!!
install 安装 sudo apt-get install openjdk-8-jdk
change version 变化Java版本 sudo update-java-alternatives -s java-8-oracle 注:变更版本可以在这里查看 ls /usr/lib/jvm/java-8-oracle
重新执行,执行一定要sudo