[jbosstools-dev] Special profile for java 1.7 on mac - how to do it
Max Rydahl Andersen
max.andersen at redhat.com
Fri Nov 16 03:49:00 EST 2012
>> We've been having a problem with running our bot tests on OS X with java 1.7. This is what we get:
>> java.awt.AWTException: headless environment
>> To overcome this, we need to add this property to the tycho surefire argLine: -Dawt.toolkit=sun.lwawt.macosx.LWCToolki
> I hate Mac, they are the worst thing that happened to Java developers, I still don't understand why so many Java developers use them... That said ;)
Yes, Oracle fucked it up, and Maven fucks it up even worse in this case...i.e. why on *earth* would anyone have profile enablement be based on an "or".
> Is this property set by default on Mac when using Eclipse? Are there some success stories of Eclipse on OSX with Java 1.7 ?
> It could be an upstream issue.
>
yeah - I'm curious about this - where did you find out sun.lwawt.macosx.LWCToolkit would solve it ? is this swtbot being weird ?
note I google this and found we apparently have code that messes with this in our tests ?!
http://lists.jboss.org/pipermail/jbosstools-commits/2012-September/041589.html
so this is not a new issue?
What is the full stacktrace of that error about "headless environment" ?
> Also, I'd rather not using some complex and immature Expression Language extension in the parent pom. We already have a lot of things to improve with the way we build, using such a not-standard thing sounds like shooting in our own feet.
me neither - that requires custom extension install on every developer desk.
> If we can't find a better way, this will be yet-another-profile-for-OSX in the pom.xml.
seems like it yes - a severe limitation on how maven works ;(
/max
More information about the jbosstools-dev
mailing list