emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?


From: Eric S Fraga
Subject: Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
Date: Tue, 05 Jul 2011 10:22:06 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Eric S Fraga <address@hidden> writes:

> Torsten Wagner <address@hidden> 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)



reply via email to

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