From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Jones Subject: Re: Org-babel Java imports Date: Tue, 19 Sep 2017 09:51:18 +0000 Message-ID: References: <87377jdpfx.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f2ed69f0849055987cd3c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duFBl-0008JU-B9 for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 05:51:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duFBk-0005ZB-2o for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 05:51:33 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:55355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duFBj-0005YB-TD for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 05:51:32 -0400 Received: by mail-wr0-x22a.google.com with SMTP id l39so2560600wrl.12 for ; Tue, 19 Sep 2017 02:51:30 -0700 (PDT) In-Reply-To: <87377jdpfx.fsf@pinto.chemeng.ucl.ac.uk> 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" To: emacs-orgmode@gnu.org --f403045f2ed69f0849055987cd3c Content-Type: text/plain; charset="UTF-8" Eric Thanks for your reply No - that's exactly what I did first, but it did not work. I then tried preceding it with a package statement, which did not work either. It got me thinking that I had now idea how it could resolve dependencies, whether for java packages, which you would expect to be on the classpath by default and therefore could be found, or for external libraries, which would usually be downloaded and put on the classpath by a tool like gradle or maven. Have you any insight into this or could you suggest whom I might ask? Regards, Tim On Tue, Sep 19, 2017 at 10:10 AM Eric S Fraga wrote: > On Friday, 15 Sep 2017 at 14:56, Tim Jones wrote: > > Hi > > Want to create org docs with embedded java blocks which will generate > > testing data > > > > I have seen > > http://ehneilsen.net/notebook/orgExamples/org-examples.html#sec-19 > > but have not been able to find an example where there are any import > > statements e.g. > > import java.time.*; > > Can you not simply put this line as the first line of the actual source > block, i.e. after the #+begin_src? (untested) > -- > : Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-729-gb792e2 > --f403045f2ed69f0849055987cd3c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Eric

Thanks for your reply

=
No - that's exactly what I did first, but it did not work. = =C2=A0

I then tried preceding it with a package st= atement, which did not work either.

It got m= e thinking that I had now idea how it could resolve dependencies, whether f= or java packages, which you would expect to be on the classpath by default = and therefore could be found, or for external libraries, which would usuall= y be downloaded and put on the classpath by a tool like gradle or maven.

Have you any insight into this or could you suggest = whom I might ask?

Regards,

Tim

On Tue, Se= p 19, 2017 at 10:10 AM Eric S Fraga <esflists@gmail.com> wrote:
http://ehneilsen.net/notebook= /orgExamples/org-examples.html#sec-19
> but have not been able to find an example where there are any import > statements e.g.
> import java.time.*;

Can you not simply put this line as the first line of the actual source
block, i.e. after the #+begin_src?=C2=A0 (untested)
--
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-729-gb792e2
--f403045f2ed69f0849055987cd3c--