cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sionut
Level 3

passing -Djava.awt.headless=true to ant

Hi,
I'm building the IA installer using ant; I want to pass the -Djava.awt.headless=true parameter to ant, but I don't know how.

Can somebody help, please ?

Thank you,
Ionut
Labels (1)
0 Kudos
(3) Replies
sionut
Level 3

The reason I'm asking this is we are getting the following exception:

[buildinstaller] Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

[buildinstaller] Stack Trace:
[buildinstaller] java.awt.HeadlessException:
[buildinstaller] No X11 DISPLAY variable was set, but this program performed an operation which requires it.
[buildinstaller] at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
[buildinstaller] at java.awt.Window.<init>(Unknown Source)
[buildinstaller] at java.awt.Frame.<init>(Unknown Source)
[buildinstaller] at javax.swing.JFrame.<init>(Unknown Source)
[buildinstaller] at ZeroGkn.<init>(DashoA10*..)
[buildinstaller] at ZeroGkn.b(DashoA10*..)
[buildinstaller] at InstallAnywhere.a(DashoA10*..)
[buildinstaller] at InstallAnywhere.main(DashoA10*..)
[buildinstaller] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[buildinstaller] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[buildinstaller] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[buildinstaller] at java.lang.reflect.Method.invoke(Unknown Source)
[buildinstaller] at com.zerog.lax.LAX.launch(DashoA10*..)
[buildinstaller] at com.zerog.lax.LAX.main(DashoA10*..)
[buildinstaller] This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
[buildinstaller] [1] + Done
0 Kudos
sionut
Level 3

Please, somebody.. help !
0 Kudos
pv7721
Level 20

If this is related to this post: http://community.macrovision.com/showthread.php?t=181922 I think I've answered your issue there.
0 Kudos