Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 08:23:08 GMT
From:      "Dr. Andreas Haakh" <bugReporter@ib-haakh.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   java/178856: Java fails to print when lpr is removed from base system
Message-ID:  <201305230823.r4N8N8WR012640@oldred.FreeBSD.org>
Resent-Message-ID: <201305230830.r4N8U0x8045311@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178856
>Category:       java
>Synopsis:       Java fails to print when lpr is removed from base system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 23 08:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dr. Andreas Haakh
>Release:        9.1-STABLE
>Organization:
ibh
>Environment:
FreeBSD Crabberio.Haakh.de 9.1-STABLE FreeBSD 9.1-STABLE #5 r250329: Tue May  7 15:36:34 CEST 2013     toor@Crabberio.Haakh.de:/usr/obj/usr/src/sys/CRABBERIO  amd64

>Description:
Due to the use of cups, lpr is removed (WITHOUT_LPR=YES in make.config). When printing, Java recognises the printer but tries to execute /usr/bin/lpr which does not exist.
>How-To-Repeat:
build FreeBSD without lpr
remove unnecessary binaries
install cups and define printer
try to print from java
>Fix:
create a symbolic link:
ln -s /usr/local/bin/lpr /usr/bin/lpr

or teach jre to search for /usr/local/bin/lpr if /usr/bin/lpr does not exist or vice versa

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305230823.r4N8N8WR012640>