Skip to content

Instantly share code, notes, and snippets.

@maxxbw54
Created October 16, 2019 08:44
Show Gist options
  • Save maxxbw54/6c535c89209d3e668986e341ed90c54c to your computer and use it in GitHub Desktop.
Save maxxbw54/6c535c89209d3e668986e341ed90c54c to your computer and use it in GitHub Desktop.
[Gradle] Error: Could not find or load main class ReservedCodeCacheSize=240M
infer run -- ./gradlew build
Capturing in gradle mode...
Running and capturing gradle compilation...
Error: Could not find or load main class ReservedCodeCacheSize=240M
Caused by: java.lang.ClassNotFoundException: ReservedCodeCacheSize=240M
ERROR: couldn't run compilation command `[u'./gradlew', '--debug', u'build']`
Internal Error: /home/bowen/Desktop/research/Explainable-Program-Repair/python-project/src/debugging_tools/infer/infer-linux64-v0.17.0/lib/infer/infer/bin/../lib/python/infer.py
-j 32 --project-root
/home/bowen/Downloads/infer-0.17.0/examples/android_hello --out
/home/bowen/Downloads/infer-0.17.0/examples/android_hello/infer-out --
./gradlew build:
exited with code 1
Error backtrace:
Raised at file "string.ml", line 142, characters 16-31
Called from file "src/string.ml", line 407, characters 12-33
Called from file "src/string.ml", line 416, characters 11-33
Re-raised at file "base/Die.ml" (inlined), line 26, characters 8-56
Called from file "base/Die.ml", line 32, characters 6-39
Called from file "integration/Driver.ml", line 171, characters 2-16
Called from file "integration/Driver.ml", line 272, characters 6-409
Called from file "integration/Driver.ml" (inlined), line 323, characters 2-29
Called from file "integration/Driver.ml", line 328, characters 62-89
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 20, characters 2-36
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml" (inlined), line 25, characters 22-94
Called from file "infer.ml", line 137, characters 8-54
Run the command again with `--keep-going` to try and ignore this error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment