From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: How-to evaluate Java-snippets in org-mode/org-babel? Date: Tue, 05 Jul 2011 16:01:47 +0900 Message-ID: <4E12B6DB.4090001@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdzdq-00021p-2N for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:01:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdzdo-0001Mk-VH for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:01:54 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:53981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdzdo-0001MY-SC for emacs-orgmode@gnu.org; Tue, 05 Jul 2011 03:01:52 -0400 Received: by iwn8 with SMTP id 8so6201938iwn.0 for ; Tue, 05 Jul 2011 00:01:51 -0700 (PDT) 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: Org Mode Mailing List 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 ? I can put the snippets in #BEGIN_SRC #END_SRC brackets which works nice for archiving and reporting. I can even call them in there own buffer via C-'. Now I would like to execute them to see if they work. Most of them just create some console output. If I could simply execute the buffer I'm getting via C-' and see the output this would be totally sufficient. I have trouble with different aspects of this. The buffer called by C-' has an unfortunate naming e.g. *Org Src main.org[ java ]*.... simply saving this buffer and trying to compile it troubles the java compiler. Giving it a different name works, but then I face the problem that I need the following directories and name convention: directory: \.java to call javac \.java to create the class file and java name. to execute the file. Obviously, I would prefer to to this automatically from within emacs. Ideally I would love to use org-babel. If this doesn't work out. A command to create the directories and filenames on fly, compile and execute it would be awesome too. If there is someone who did something similar or has an idea... would be glad to hear about Totti