Is it possible to specify which X display the JVM is to launch it's windows on through the JVM? I am thinking something like this
java -DISPLAY=THE_DISPLAY_I_WANT:0.1 -jar my.jar
I looked at the man pages and I can't find anything.
or do I need to wrap my call to the jvm in a shell script like this
#/bin/sh
export DISPLAY=THE_DISPLAY_I_WANT:0.1
java -jar my.jar
I don't want to make a script just to specify an argument that can be past directly to the JVM.
PS: No, I don't want to change my enviroment DISPLAY variable I want to launch the JVM on whichever DISPLAY I like :)
Update Responding to the question "Why does it matter if I use the second solution" Using the second solution, If I would like to start a jvm session on several different displays I would have to set the DISPLAY for each session.
What I am looking for is like what you can do with Xprograms
try xterm -display my_display:0.0
So my question is can I do this with the jvm, I can't see it documented anywhere. If it can't be done then the correct answer should be "No you can't", I already know the alternative :)
Thanks