From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UDkLAvzSWmCmEwAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 05:49:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ICZ7OfvSWmDxJAAA1q6Kng (envelope-from ) for ; Wed, 24 Mar 2021 05:49:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5925F13B98 for ; Wed, 24 Mar 2021 06:49:47 +0100 (CET) Received: from localhost ([::1]:41472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOwOn-0006DG-TJ for larch@yhetil.org; Wed, 24 Mar 2021 01:49:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOwLf-0006Be-MC for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 01:46:32 -0400 Received: from ciao.gmane.io ([116.202.254.214]:40352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOwLa-0001VA-QX for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 01:46:28 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lOwLY-0008qA-7l for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 06:46:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Jarmo Hurri Subject: Org babel java: adding class path Date: Wed, 24 Mar 2021 07:46:19 +0200 Message-ID: <87v99hgl3o.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:vAo1ygzPlKI9DErPzdkuvM26Pyc= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616564987; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=pJwHNWeCS/b3Zwo9WGdE75ytHdwSJAvQoONOV6H1ix4=; b=oMUXNIBW8PVxp/E7ZiNS+lamNntz/R4CrPjt9Wb0H8H2RC3J4JqEzrPHeMFKJ2d5Qu6sRC Mek+MnjQZYBOfcc0fU0q9mTcFeRJJhUSrqGIbcp7z+baEH5s/epCuJ4BFVzeYTjysUtulF cjtOBIYhRHHybBN6RMpucVkz3xJs9Nk9raWRN7RMNJbKYkUC+gN4ht8V9t2XXhltnbrmlu eN2CMpxAhdqb7YMhFeMdK114shl/tLA8/6VMumHq0oBh2FfvLXaRyDrnhnhI9LoHGrEVhM lKK7AAU3RrmGIsl3JfW9Kw2s33bg7jbCDTxhO4AI/4g41h+VVTEeDeN6jgC45g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616564987; a=rsa-sha256; cv=none; b=fc7WQlH94YA4kv95C6kZgwgkW+yyx1xsF6GEj4wpTQ9Yw/dgf/M9ks3uIPK5hFglx5Xskn aCL7LeGqumPLzMh6uxbb7xvTScOFhCSXamVbgbe2xbE8nHw4aqoIGbgpkVOz2NJliDqt2Q +8rY+OJq0mNAq7tKiKuRE+2Pc/TWpoovuZv2VUPD14LUER8CkzK2nGU4FibHKIaFVPc6DJ 3fCoVMM9PRjEXpaa3Bdw4IxmCMzicrhDIzZW2hmaHK+M8bbkpngHfKZ69Z8fO20cyyxqNQ XgbIqzIg9drh32MvJHcDC2wy6V00bsWBKDCJTNn4hMPTBC4FkNATHvQzSynP5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5925F13B98 X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: wpZxZzzhAbmp Greetings. I need to add an additional classpath to the call of org-babel-java-command to make sure my program is able to load a database driver. But, as it is now, org babel java already uses classpath option -cp, and in the case of multiple -cp options, only the last one is retained: https://stackoverflow.com/questions/45291354/specifying-multiple-cp-or-classpath-entries-on-java-command-line So what is the correct way to do achieve this in org babel? >From the command line, in linux, multiple class paths would separated by a colon ":" java -classpath "/usr/share/java/hsqldb.jar:." Main Have fun and stay safe, Jarmo