I want to run monkeyrunner but if I run mypath/Sdk/tools/bin/monkeyrunner I get:
-Djava.ext.dirs=mypath/Sdk/tools/lib:/mypath/Sdk/tools/lib/x86_64 is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I found some questions like this but for MacOS and Windows but none for linux.
Other questions suggest to install java 8. For me
java -versionshowed that I was using corretto 11, so I installed corretto 8 as well (via .deb).With
find . -name '*corretto*' 2>/dev/nullI found the executables as./usr/lib/jvm/java-*-amazon-corretto/jre/bin/java. After settingjava -versionshows corretto 11 and monkeyrunner can start up.To fix the script I add those two lines before the call to java in the last line: