java/178856: Java fails to print when lpr is removed from base system

Dr. Andreas Haakh bugReporter at ib-haakh.de
Thu May 23 08:30:01 UTC 2013


>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 at 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:


More information about the freebsd-java mailing list