]
Martin Malina closed JBIDE-20150.
---------------------------------
Verified in JBDS 9.0.0.CR1 B100
Add -Djava.awt.headless=true for older JBoss AS servers
-------------------------------------------------------
Key: JBIDE-20150
URL:
https://issues.jboss.org/browse/JBIDE-20150
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: server
Affects Versions: 4.3.0.Beta1
Reporter: Martin Malina
Assignee: Rob Stryker
Priority: Minor
Fix For: 4.3.0.CR1
This really should have been done several years ago :) But it should be trivial, so why
not do it now.
When you start an older server, such as JBoss AS 4 or EAP 5.2, on Mac, once the server is
started, a new icon will be added to Dock and it will gain focus and in the menu bar, it
will say org.jboss.Main.
The solution is to add -Djava.awt.headless=true to the VM arguments in the launch
config.
I noticed that we already do this for EAP 6.1, so can we do similarly for older servers?
I checked this works with JBoss AS 4.0, 4.2.3 and EAP 5.2.
Also, this only happens with JDK 1.6. When I started AS 4.0 with JDK 1.8, the process
didn't have an icon in the dock. But it shouldn't break to add the headless
parameter everywhere (I checked for this case).
The reason we came across this now is that it breaks our tests - Eclipse loses focus once
the server starts on Mac. Surely we can work around that (and we will for now), but I
thought we could fix this in the tools directly.