From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How-to evaluate Java-snippets in org-mode/org-babel? Date: Tue, 05 Jul 2011 10:22:06 +0100 Message-ID: <8762nhjd4x.fsf@pinto.chemeng.ucl.ac.uk> References: <4E12B6DB.4090001@gmail.com> <87tyb1jdtk.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe1pi-0008S0-9m for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qe1pg-0000xA-8s for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:22:17 -0400 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:58740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe1pf-0000wh-NG for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 05:22:15 -0400 In-Reply-To: <87tyb1jdtk.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Tue, 05 Jul 2011 10:07:19 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Wagner Cc: Org Mode Mailing List Eric S Fraga writes: > Torsten Wagner writes: > >> Hi all, >> >> I need to evaluate many small java snippets. I tried to do this in >> org-mode but so fare it didn't work out. org-babel seems to have no >> java support ? > > Not directly but, given the issues with class paths and naming schemes, > I would suggest that the best route is to use babel to tangle code > instead of trying to execute it directly within org. So, for instance, > you might have: > > #+begin_src java :tangle "mypackage/myclass.java" > package mypackage; > public class myclass > { > ... > } > #+end_src > > Then "C-c v t" in org will put the code into the appropriate file. That should have been "C-c C-v t" (org-babel-tangle); apologies for typographical error! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.574.g5a503)