emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Tim Jones <tim.jones.001@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-babel Java imports
Date: Tue, 19 Sep 2017 16:52:00 +0100	[thread overview]
Message-ID: <87h8vywusf.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <CAAjD55gaRMMAwT4huU6fCqhM4UYpqFC9N-r1wmLcW04-7dY1FA@mail.gmail.com> (Tim Jones's message of "Tue, 19 Sep 2017 09:51:18 +0000")

[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]

On Tuesday, 19 Sep 2017 at 09:51, Tim Jones wrote:
> I then tried preceding it with a package statement, which did not work
> either.

No, a package statement should not be required.  The classname matches
the java code.

What worked for me, accessing a class in another package, was to put
".:PATH2OTHERPACKAGE" as the option for the command line.

> 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.

classpath management in Java is a nightmare (in my experience)
compounded by tools like maven and gradle.

In any case, could you post a minimal org example including a java block
that you would expect to work, e.g. the HelloWorld example with some
other class reference?  Include any error messages from the
execution of the org block.

Also, what version of org are you using?

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

      reply	other threads:[~2017-09-19 15:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-15 14:56 Org-babel Java imports Tim Jones
2017-09-19  9:10 ` Eric S Fraga
2017-09-19  9:51   ` Tim Jones
2017-09-19 15:52     ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8vywusf.fsf@delle7240.chemeng.ucl.ac.uk \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tim.jones.001@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).