uruseiiyatsura <uruseiiyats...@protonmail.com> writes: > [Java Source Code Blocks in Org > Mode](https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-java.html) > says the following: > > "It is not necessary to include the class statement or define a main method. > ob-java will wrap a source code block in boilerplate class and main method > definitions if they are omitted. If :classname and the class definition in > the source code block are both omitted, the class will be named Main." > > The following example is provided: > > #+begin_src java :results output > System.out.print("hello, world"); > #+end_src > > This returns error "can't compile a java block without a classname." This > contradicts the documentation.
Sorry for the late reply. Your example works just fine on the latest Org. I cannot reproduce the problem. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>