From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0GzOCLi6UGPINwEAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 05:04:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wDCZB7i6UGMLRQEAG6o9tA (envelope-from ) for ; Thu, 20 Oct 2022 05:04:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D2525B22 for ; Thu, 20 Oct 2022 05:04:23 +0200 (CEST) Received: from localhost ([::1]:38246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olLr4-0007Xw-Up for larch@yhetil.org; Wed, 19 Oct 2022 23:04:23 -0400 Received: from [::1] (port=58604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olLkp-00039Y-9h for larch@yhetil.org; Wed, 19 Oct 2022 22:57:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olLkc-00039D-O7 for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 22:57:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olLka-0005X5-QT for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 22:57:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0BDD0240027 for ; Thu, 20 Oct 2022 04:57:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666234657; bh=uO112uOnZVUi+vtUPuNCUkjrxFzn2H5Ddkoma+LMA5w=; h=From:To:Cc:Subject:Date:From; b=CF5L6Zo5qEjieumsSJbb/JwGS0BJkmJuNqKFemdFst6RYoNactwolikOGw0ZYJDew UH/zdoPYYXlcwhzLKsE2aNGnKCfqdp6EZj8G9lavYym89vyI7CUXXU7JkTw+R/HyDj P8EYO1jUEK3ySnz15Lqo2m6+hl4iBB52PAMNDdzT1aIjDom9YPdySS/iV9uuuPfyMu 3GfpwX4UoT3eEIxY8wlYZIuRL91MG+eHmorxUQe9B9lQ5k89B25jqdOichIW0UmEV5 VAO8XPGxotb6lhoLRnf4gkmEkjbOUENpb/EwgFBZ6rzqhORsc3y0yPeHoKRI3N2uoe fOv3/LfbLM76Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MtC266Z9rz9rxL; Thu, 20 Oct 2022 04:57:34 +0200 (CEST) From: Ihor Radchenko To: uruseiiyatsura Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] Possible Outdated Documentation, Possible Bug. "Can't compile a java block without a classname." Org-babel babel java In-Reply-To: References: Date: Thu, 20 Oct 2022 02:58:20 +0000 Message-ID: <874jvzb3qr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666235063; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PczLkGuHew4Vnimy/dP5LOucDSrc1D5ml7yFsr3sdSs=; b=h2LSLu0BeoBN3wUl43pKxGe+RKI/Q2Org57m27RDhHBBlHB8vYIYrmIIvSg+Bd/VaRk+FO tWgeDT3CDAenXX+bxHkKex5fOmMdnMXAvl1OBAc1IkigsBCD/wDEGDM7RFxom5ei5ZbWaU WFpRYXuSFGznAkpjFGz3zFI4+EZczexsDqC+7S/pVXKnTBtSBhVUwoIwfanXSVP9IwFvLV g3pgbnrBKWV05OBgEQ7e4qI7vJ8Dv0ElJz30ugQJBpJldvk+8ycmepyk58z6CyZWIjhcTa rwAggn7pC1sBBuqGa2RDxi6NwKR3jRpk5MJdSLI04kBXuNokrShwvyfHbDwjEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666235063; a=rsa-sha256; cv=none; b=ldH1wfdYyl8YDNwpTYZtwKkx5mUcP4G2wqj8f2BpW5dfRPhqdFN1CanCjocSvzEMU9aK3A ophsidDQ0y5VY1FzvGtCL/8RuUKpWqxipCYf3RapsZKG5aFo8KhxBIjZVi3iagel1ESvk6 q+aiLRpxdkc8mH06aFRrRo4F8bo0p6BNA2gMoCCS6fswD2uwnR6mFn14t3QbrnhLBfn2h+ I/kE1hEgzW4T/zRngkVE7GlAgrv+0JNvNoLgqd8oMq4ual9MjH4+0ml99s90E53BRk72yB Syg/pgpOEKJLKVfyYSMwvUpW4GoDuX45iy+XNjGvhLrhr7qgvgYZEa+KePE/EA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CF5L6Zo5; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CF5L6Zo5; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D2525B22 X-Spam-Score: -3.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: faAZXvm1q9gS uruseiiyatsura 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 . Support Org development at , or support my work at