I cannot describe fragments of Java code in org mode. That's what i
#+BEGIN_SRC java public class Main { public static void main(String[] args) { System.out.println("hello world"); } } #+END_SRC
I get the following error: can't compile a java block without a classname
. I can verify that python blocks just find. The same java fragment works fine if I compile it using javac.
I already included java in the init emacs file.
source share