Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 136727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:59:39+00:00 2026-05-11T06:59:39+00:00

Is it possible to specify which X display the JVM is to launch it’s

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:59:39+00:00Added an answer on May 11, 2026 at 6:59 am

    Given your constraints on the answer, the answer you’re looking for is ‘It can’t be done‘

    I’m still curious why the second solution doesn’t work for you. I realize it’s not what you want to do, I just want to know why

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In VS2005 and up, is it possible to specify which configuration should be selected
Is it possible to specify a Java classpath that includes a JAR file contained
Am I doing something wrong or is it not possible to specify a generic
Is it possible to specify a lowercase only output when using Mcrypt? This is
Is it possible to specify my own default object instead of it being null?
Is it possible to specify a relative connection string for an AzMan XML store?
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
It's possible to specify a particular function to be called when button is clicked
In SPSS 11 it was possible to specify relative paths. Example: FILE HANDLE myfile='..\..\data\current.txt'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.