emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Possible Outdated Documentation, Possible Bug. "Can't compile


From: Ihor Radchenko
Subject: Re: [BUG] Possible Outdated Documentation, Possible Bug. "Can't compile a java block without a classname." Org-babel babel java
Date: Thu, 20 Oct 2022 02:58:20 +0000

uruseiiyatsura <uruseiiyatsura@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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]