Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » java.awt.HeadlessException: No X11 DISPLAY variable was set
java.awt.HeadlessException: No X11 DISPLAY variable was set [message #83731] Mon, 18 September 2006 08:21 Go to next message
Eclipse UserFriend
Originally posted by: akarypid.yahoo.gr

Hello,

When I try to profile any application which uses Swing I get the following
exception:

java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation
which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironme nt.java:159)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:150)
[...]

Profiling text-only applications work just fine. Any ideas why TPT eats the
DISPLAY variable? I've tried setting the variable to "localhost:0.0" or
just ":0.0" (the latter is what my X session uses globally) on the
environment tab of the respective launch configuration, but the problem
persists.

--
Alexandros Karypidis
Re: java.awt.HeadlessException: No X11 DISPLAY variable was set [message #84739 is a reply to message #83731] Tue, 03 October 2006 05:45 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2009
Junior Member
Alexandros Karypidis wrote:

> Hello,
>
> When I try to profile any application which uses Swing I get the following
> exception:
>
> java.awt.HeadlessException:
> No X11 DISPLAY variable was set, but this program performed an operation
> which requires it.
> at
>
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironme nt.java:159)
> at java.awt.Window.<init>(Window.java:317) at
> java.awt.Frame.<init>(Frame.java:419) at
> java.awt.Frame.<init>(Frame.java:384) at
> javax.swing.JFrame.<init>(JFrame.java:150)
> [...]
>
> Profiling text-only applications work just fine. Any ideas why TPT eats
> the DISPLAY variable? I've tried setting the variable to "localhost:0.0"
> or just ":0.0" (the latter is what my X session uses globally) on the
> environment tab of the respective launch configuration, but the problem
> persists.
>

Let me know if you find a solution. I'm having the same problem.

I'm new to TPTP and have been unsuccessfully trying to install and use it.
This is as far as I've got.

Eclipse 3.2.1, TPTP 4.2.0, JDK 1.5.0_05, SuSE 10.0 linux.
Re: java.awt.HeadlessException: No X11 DISPLAY variable was set [message #84769 is a reply to message #84739] Tue, 03 October 2006 16:26 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Gordon Keith wrote:
> Alexandros Karypidis wrote:
>
>> Hello,
>>
>> When I try to profile any application which uses Swing I get the following
>> exception:
>>
>> java.awt.HeadlessException:
>> No X11 DISPLAY variable was set, but this program performed an operation
>> which requires it.
>> at
>>
> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironme nt.java:159)
>> at java.awt.Window.<init>(Window.java:317) at
>> java.awt.Frame.<init>(Frame.java:419) at
>> java.awt.Frame.<init>(Frame.java:384) at
>> javax.swing.JFrame.<init>(JFrame.java:150)
>> [...]
>>
>> Profiling text-only applications work just fine. Any ideas why TPT eats
>> the DISPLAY variable? I've tried setting the variable to "localhost:0.0"
>> or just ":0.0" (the latter is what my X session uses globally) on the
>> environment tab of the respective launch configuration, but the problem
>> persists.
>>
>
> Let me know if you find a solution. I'm having the same problem.
>
> I'm new to TPTP and have been unsuccessfully trying to install and use it.
> This is as far as I've got.
>
> Eclipse 3.2.1, TPTP 4.2.0, JDK 1.5.0_05, SuSE 10.0 linux.

Sounds like you're both being bitten by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150006
.... you might want to add your e-mails to the CC list, and consider the
workarounds offered there.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: java.awt.HeadlessException: No X11 DISPLAY variable was set [message #84799 is a reply to message #84769] Tue, 03 October 2006 23:14 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: July 2009
Junior Member
Randy D. Smith wrote:

> Sounds like you're both being bitten by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=150006
> ... you might want to add your e-mails to the CC list, and consider the
> workarounds offered there.

I'm now a bit confused about which AC to use. There seems to a the IAC, the
RAC and the new AC. Which of these, if any, currently work on linux?
Re: java.awt.HeadlessException: No X11 DISPLAY variable was set [message #84814 is a reply to message #84799] Tue, 03 October 2006 23:52 Go to previous message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Gordon Keith wrote:
> Randy D. Smith wrote:
>
>> Sounds like you're both being bitten by
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=150006
>> ... you might want to add your e-mails to the CC list, and consider the
>> workarounds offered there.
>
> I'm now a bit confused about which AC to use. There seems to a the IAC, the
> RAC and the new AC. Which of these, if any, currently work on linux?
>

Depending on exactly what you're trying to do, they ALL currently work
on Linux (assuming we're talking 32-bit Linux efforts, not 64-bit ones).
Bugzilla has various and sundry items flagged as problems, some number
of bugzillas for each of the three.

If you're using JVMTI (the tech preview profiler for Java 5 and beyond)
you'll need to use the "new tech AC". That AC is also becoming "the" AC
for 4.3.0 now (as in the switch was just recently made on the download
page). If you're using 4.2.1 or before, you'll want the original RAC.

The RAC comes in packages named tptpdc.<os>_<platform> while the new
tech AC comes in packages named agntctrl.<os>_<platform>.

The IAC (integrated [or internal] agent controller) is an effort to make
this all easier to use without having to download a "separate" agent
controller. This relegated the new tech AC and the RAC to times when
people needed to monitor agents remotely. That effort (to make things
easier) was not a big success.

If you download NO agent controller you get the IAC as part of the TPTP
runtime. You also get it if you start up Eclipse and try to do TPTP
things without an agent controller running.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Previous Topic:rule-based adapter works from command line but fails as plugin
Next Topic:Customize column in Log View?
Goto Forum:
  


Current Time: Fri Mar 29 12:56:56 GMT 2024

Powered by FUDForum. Page generated in 0.03287 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top