how to run Gradlefx from a remote terminal to build a mobile package? (headless)
Hi,
I just successfully created my first ipa-file on the mac via
command line.
Now, when I log in from another machine and call gradle I
get
Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
My favorite search engine says that this is because I am not
running headless and suggestes to add
'-Djava.awt.headless=true' to my command, but that
does not change anything:
~/gradle-1.8/bin/gradle packageMobile '-Djava.awt.headless=true'
Do I need to do anything else? install something that works as
headless server?Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Yennick Trevels on 16 Nov, 2013 05:26 PM
There's a 'headless-server' option available for the Flex compiler which may help you: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c...
2 Posted by Andreas on 16 Nov, 2013 05:31 PM
yes, that is what I use to compile the SWF, which runs fine but for packing the ipa I need some more magic.
3 Posted by Andreas on 16 Nov, 2013 05:54 PM
OK, I found 2 workarounds here:
http://stackoverflow.com/questions/10661160/run-adt-adobes-air-deve...
one is to make everything headless (by replacing java from bin with a script that adds "-Djava.awt.headless=true") and the second one is to log in as a normal user.
The 2. option works fine, because I can switch back to the login screen and anyone else can use the mac while I can compile my project from everywhere, anytime I want.
So I think this issue is solved. Feel free to close the discussion.
Andreas closed this discussion on 18 Nov, 2013 01:33 PM.