From owner-freebsd-questions@FreeBSD.ORG Wed Dec 20 05:30:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4836416A403 for ; Wed, 20 Dec 2006 05:30:41 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0DC343CA0 for ; Wed, 20 Dec 2006 05:30:40 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.8/8.13.8) with ESMTP id kBK5CKHH049070; Tue, 19 Dec 2006 22:12:20 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.8/8.13.8/Submit) with ESMTP id kBK5CJCK049067; Tue, 19 Dec 2006 22:12:19 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 19 Dec 2006 22:12:19 -0700 (MST) From: Warren Block To: Stevan Tiefert Message-ID: <20061219214345.E49015@wonkity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Tue, 19 Dec 2006 22:12:20 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: acrobatviewer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 05:30:41 -0000 > Stevan Tiefert wrote: > > I have installed acrobatviewer-1.1 and diablo-jre-1.5.0.07.01_1. > Each time I want to use acrobatviewer, this message appears: > > $ AcrobatViewer > expr: illegal option -- r > usage: expr [-e] expression > $ AcrobatViewer redbook.pdf > expr: illegal option -- r > usage: expr [-e] expression > $ [Suggestions of using xpdf or kpdf...] > this thread is confusing me... An example: If I ever would have a > problem with the FreeBSD-Kernel you would suggest me to use a > linux-kernel? > I have a problem with acrobatviewer... I wanted maybe a hint or > solution with my problem and not alternatives. Some people would read your question as "What can I use to view PDFs?" They're trying to help. Nobody has suggested acroread yet, which also works. As to your original question, there are several problems with with escaping and quoting in the AcrobatViewer shell script. That whole script is a problem. What it's supposed to do is set up an environment to actually run the Java code. You can run it directly: java -cp acrobat.jar com.adobe.acrobat.Viewer Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/mrj/MRJAboutHandler (The same error shows up when you run the "LAX" version set up by the shell script.) Web searching led to this: http://groups.google.com/group/comp.lang.java.programmer/msg/a49b39f4960fca76?dmode=source -Warren Block * Rapid City, South Dakota USA