Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] java.awt.AWTError
Date: Wed, 03 Feb 2016 14:37:11
Message-Id: 20160203143634.247aa3b6@digimed.co.uk
In Reply to: [gentoo-user] java.awt.AWTError by Helmut Jarausch
1 On Wed, 03 Feb 2016 12:44:19 +0100, Helmut Jarausch wrote:
2
3 > when emerging sci-geosciences/josm-9999 I get a Java error :
4 >
5 >
6 > java.awt.AWTError: Can't connect to X11 window server using ':0' as the
7 > value of the DISPLAY variable.
8
9 Probably because you are running as root and the display is not available.
10
11 If you use su, try sux instead, it's a wrapper for su that makes running
12 X programs easier.
13
14 If you're using sudo, try sudo -E.
15
16
17 --
18 Neil Bothwick
19
20 Top Oxymorons Number 46: Found missing