Java:Compile-time error
biosyxh opened this issue · 1 comments
I use Sniprun in neovim to run the Golang code normally, but when I try to run the Java code, I get a Compile-time error. And the program can be successfully executed when I use the java command. Where should I check the log and how to troubleshoot it?Thank you!
JDK version: 20.0.1
Hmm at first glance it's not broken (also on jdk20.0.1)...
There should be a log in your cache directory (~/.cache on Linux and ~/library/Caches on MacOS usually) /sniprun/sniprun.log
You could also check the content of the java_original directory, where a 'Main.java' file is created each time you run a snippet. This file should be compilable with javac
and the resulting executable is run with java
If you want me to help debug your issue, please send those files (review them first if you don't want to share information such as file names or usernames)