Run Java Applications on GraalVM from the CLI #Īny application that runs on a Java Virtual Machine (JVM) can run on GraalVM. Profile Java Applications on GraalVM with VisualVM.Configure JVM Options for Applications Running on GraalVM.Debug Java Applications on GraalVM from an IDE.Run Java Applications on GraalVM from an IDE.Run Java Applications on GraalVM from the CLI.StackExchange.Here you will find information about how to: Although I haven't tried it, it's possible that both deleting the ~/.gradle/caches and reloading the project would have had the same effect.Įither way, going through the steps above and then undoing them seems to do the trick. The conclusion I draw is that perhaps IntelliJ had a corrupted cache, which was only fixed by getting it to recognize the jars via the symbolic link. That is, it now works in IntelliJ with no changes (by me) from the state that was not working. So that I don't have to copy the files, and any changes are picked up automatically.Īfter temporarily removing all my workarounds so that I could assess how to make IntelliJ work without committing the workarounds (the build script changes as well as the symbolic link), I discovered that it still worked (!). Ln -s /Users/me/.gradle/caches/modules-2/files-2.1/ lib I solved this by making a symbolic link to the Gradle cache directory: There's also the problem of keeping these folders up-to-date if any dependencies change. Of course, then I have a problem of having a lib folder with jars that I do not want committed in my project, but there are ways around that. Jars=($(find /Users/me/.gradle/caches/modules-2/files-2.1/unrecognizedorg/ -name '*.jar'))Īnd then refresh Gradle within IntelliJ, the files are recognized. In summary, if I change my root project adle like this:Īnd the subproject's adle like so:Ĭompile fileTree(dir: 'lib', include: '*.jar') After trying all the different suggestions about this issue, the one that seemed to work was to copy the unrecognized jars from my local Gradle cache into a folder within my project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |