Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA6E8181DE for ; Sat, 7 Nov 2015 22:58:03 +0000 (UTC) Received: (qmail 46793 invoked by uid 500); 7 Nov 2015 22:58:03 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 46770 invoked by uid 500); 7 Nov 2015 22:58:03 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 46758 invoked by uid 99); 7 Nov 2015 22:58:03 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Nov 2015 22:58:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C0D5D180233 for ; Sat, 7 Nov 2015 22:58:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.24 X-Spam-Level: *** X-Spam-Status: No, score=3.24 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=mx.aol.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id uz7CwTo5lBRe for ; Sat, 7 Nov 2015 22:57:53 +0000 (UTC) Received: from omr-m008e.mx.aol.com (omr-m008e.mx.aol.com [204.29.186.7]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3C71542AEE for ; Sat, 7 Nov 2015 22:57:53 +0000 (UTC) Received: from mtaomg-mcb02.mx.aol.com (mtaomg-mcb02.mx.aol.com [172.26.50.176]) by omr-m008e.mx.aol.com (Outbound Mail Relay) with ESMTP id CD557380006B for ; Sat, 7 Nov 2015 17:57:47 -0500 (EST) Received: from core-aaa10a.mail.aol.com (core-aaa10.mail.aol.com [172.26.125.10]) by mtaomg-mcb02.mx.aol.com (OMAG/Core Interface) with ESMTP id 9613838000082 for ; Sat, 7 Nov 2015 17:57:47 -0500 (EST) Received: from 70.194.0.58 by webprd-a107.mail.aol.com (10.72.52.245) with HTTP (WebMailUI); Sat, 07 Nov 2015 17:57:47 -0500 Date: Sat, 7 Nov 2015 17:57:47 -0500 From: Jonathan Levi To: users@pdfbox.apache.org Message-Id: <150e42b7f22-2381-3fbf@webprd-a107.mail.aol.com> In-Reply-To: Subject: Re: Shell Can't Find pdfbox MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20237_1683107530.1446937067295" X-MB-Message-Source: WebUI X-MB-Message-Type: User X-Mailer: JAS STD X-Originating-IP: [70.194.0.58] x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1446937067; bh=JC0AFrqCka7vP0cWtl9Kl6Gobbdyq0yXPDN4jbNNGJM=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=oZnHe+YnN/w5RV2zVmrY8YjKaPAgCjvKq2DpAhZGL5LHN6ezMsFR7lobM1uqyNy8o o22ozrYisZIbP1I1rBDBTMqyFTwQRNZdKHPpYrhdIMomurSRXq/WI6SApoUiAenfE+ rdokGdg6MHIHLjKnbuYWnE5ibtjxq44gIcejFBYk= x-aol-sid: 3039ac1a32b0563e81eb7aae ------=_Part_20237_1683107530.1446937067295 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Well, that does work, although it appears to be a different method than wha= t the Apache PDFBox documentation specifies. Thank you! JL =20 =20 =20 -----Original Message----- From: Maruan Sahyoun To: users Sent: Sat, Nov 7, 2015 12:36 pm Subject: Re: Shell Can't Find pdfbox Hi, > Am 07.11.2015 um 17:30 schrieb Jonathan Levi : >=20 > > Tilman and Andreas, >=20 > Thank you for your help. Unfortunately, I can't make either suggestion work: >=20 > Tilman: I don't think the problem is a missing $PATH entry. My pdfbox-app-1.8.10.jar is in /usr/local/bin: >=20 > jonathan$ ls /usr/local/bin/pdfbox-app-1.8.10.jar > /usr/local/bin/pdfbox-app-1.8.10.jar >=20 > This is in $PATH: >=20 > jonathan$ echo $PATH > /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:.:/Users/jona= than/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/us= r/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin >=20 >=20 >=20 > Andreas: To eliminate as much uncertainty over permissions as possible, I did >=20 > jonathan$ chmod 777 /usr/local/bin/pdfbox-app-1.8.10.jar > drj-air:Desktop jonathan$ ls -al /usr/local/bin/pdfb* > -rwxrwxrwx@ 1 jonathan staff 10613055 Aug 16 13:26 /usr/local/bin/pdfbox-app-1.8.10.jar >=20 > (I don't understand the @ flag: Is that the problem?) Anyway, it still doesn't work: >=20 > jonathan$ java -jar pdfbox-app-1.8.10.jar \ >> ExtractText aFile.pdf > aFile.txt; cat aFile.txt > Error: Unable to access jarfile pdfbox-app-1.8.10.jar >=20 >=20 > What seems to work, again, is to supply the full path of pdfbox-app-1.8.10.jar: >=20 > jonathan$ java -jar /usr/local/bin/pdfbox-app-1.8.10.jar \ >> ExtractText aFile.pdf > aFile.txt; cat aFile.txt > (Text) >=20 > which is also what I got before modifying pdfbox-app-1.8.10.jar's permissions. Any further suggestions? what you can do is put the .jar in either /Library/Java/Extensions or ~/Library/Java/Extensions the you can run the pdfbox app like this java org.apache.pdfbox.PDFBox BR Maruan >=20 > Jonathan > >=20 >=20 > -----Original Message----- > From: Andreas Lehmk=C3=BChler > To: users ; Jonathan Levi > Sent: Tue, Nov 3, 2015 5:48 am > Subject: Re: Shell Can't Find pdfbox >=20 >=20 > Hi, >=20 >> Jonathan Levi hat am 3. November 2015 um 03:25 > geschrieben: >>=20 >>=20 >> I'm finding that shell commands to use > pdfbox-app-1.8.10.jar won't work unless >> the full path is used. Example: >>=20 >=20 >> drj-air:Desktop jonathan$ ls /usr/local/bin/pdfb* >>=20 > /usr/local/bin/pdfbox-app-1.8.10.jar >> drj-air:Desktop jonathan$ java -jar > pdfbox-app-1.8.10.jar ExtractText >> Contact-Office-Letter.pdf=20 >> Error: Unable > to access jarfile pdfbox-app-1.8.10.jar >> drj-air:Desktop jonathan$ java -jar > /usr/local/bin/pdfbox-app-1.8.10.jar >> ExtractText Contact-Office-Letter.pdf >=20 >> drj-air:Desktop jonathan$=20 >>=20 >> Is there a shell variable that has to be > set for Java to know where to look >> for jars? > I guess the issue might be that > your user doesn't have sufficient rights to > access the jar. >=20 > Check the output > of=20 >=20 > ls -al /usr/local/bin/pdfb* >=20 > and change the access permissions if > necessary > >> Using Mac OS X 10.11.1. >>=20 >> TIA, >>=20 >>=20 > Jonathan >=20 > BR > Andreas >=20 >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org =20 ------=_Part_20237_1683107530.1446937067295--