From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Org-babel Java imports Date: Tue, 19 Sep 2017 16:52:00 +0100 Message-ID: <87h8vywusf.fsf@delle7240.chemeng.ucl.ac.uk> References: <87377jdpfx.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duKoj-0008A7-IS for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 11:52:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duKog-0006pC-LQ for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 11:52:09 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:37056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duKog-0006o1-EL for emacs-orgmode@gnu.org; Tue, 19 Sep 2017 11:52:06 -0400 Received: by mail-wm0-x243.google.com with SMTP id f4so26543wmh.4 for ; Tue, 19 Sep 2017 08:52:06 -0700 (PDT) In-Reply-To: (Tim Jones's message of "Tue, 19 Sep 2017 09:51:18 +0000") 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: Tim Jones Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWcE9IAAKCRDIkZPY//z2 fT/PAJsGoS5R6fiqGDiLQkxmsoQ4eaZVTQCfdqtE082/YebnpeHn0FcxdbzxmXI= =/wo6 -----END PGP SIGNATURE----- --=-=-=--