|java.awt.HeadlessException: No X11 DISPLAY variable was set [message #83731]
||Mon, 18 September 2006 08:21
Originally posted by: akarypid.yahoo.gr|
When I try to profile any application which uses Swing I get the following
No X11 DISPLAY variable was set, but this program performed an operation
which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironme nt.java:159)
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
|Re: java.awt.HeadlessException: No X11 DISPLAY variable was set [message #84814 is a reply to message #84799]
||Tue, 03 October 2006 23:52
| Randy D. Smith
Registered: July 2009
Gordon Keith wrote:|
> Randy D. Smith wrote:
>> Sounds like you're both being bitten by
>> ... 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.
Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Powered by FUDForum
. Page generated in 0.03168 seconds