Sponsored Content
Top Forums Programming swing not getting initialized when the DISPLAY is not set Post 302334755 by cbkihong on Thursday 16th of July 2009 11:01:15 AM
Old 07-16-2009
Try to see if headless mode works for you:

Using Headless Mode in the Java SE Platform
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

set display

Hi All: An elementary Unix Question, How can i set the display number and run a program in that display. If i type the name of the executable the program opens in the console(display number 0), however, i want it to open in another display number. How can i do that. Appreciate the help... (2 Replies)
Discussion started by: preetham
2 Replies

2. UNIX for Dummies Questions & Answers

mandrake 6.0 , display not set despite

hi, i am on mandrake 6.0, shell of root user is bash. okay, i did the below #display=localhost.localdomain:0.0 #export display #xhost +localhost.localdomain system replies xhost added.. i did a set and there was an entry there.. now i want to install oracle, so did a ./runInstaller ... (2 Replies)
Discussion started by: yls177
2 Replies

3. Solaris

Can't make 'set DISPLAY' to work

Hi, I used exceed and putty in the past to HP server with no problem to make 'set DISPLAY' work on my desktop. However now I have Solaris 9 on Sun server 480 and I only have putty. I can't bring the X window (eg xclock, etc) to my desktop. I tried X11Fowarding, xhost, and so on, it doesn't... (5 Replies)
Discussion started by: jr_zhang
5 Replies

4. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

5. UNIX for Dummies Questions & Answers

.zshrc not initialized

Hi, I just updated /etc/passwd so that my default shell is zsh. After I save and make a new connection I can echo $SHELL and see /usr/bin/zsh, but my prompt still looks like bash and some env var that I setup in my local .zshrc file are not set. If I type zsh, then my prompt changes and I have my... (7 Replies)
Discussion started by: yankee428
7 Replies

6. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

7. Solaris

Where/how is $DISPLAY set when connecting with XDMCP?

My "problem" is that it's set correctly and I want to break it, but can't figure out where it's getting set in the first place. I can see several places where $DISPLAY is referenced but at the point that the dollar sign is in front it's already an environment variable(I think). I thought... (1 Reply)
Discussion started by: gctaylor
1 Replies

8. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

9. Solaris

DISPLAY not set

Hi, When i invoke DBCA as oracle user , i get following usircd01:KAM:/opt/oracle10/product/10.2.0/bin>./dbca DISPLAY not set. Set DISPLAY environment variable, then re-run. usircd01:KAM:/opt/oracle10/product/10.2.0/bin>echo $ORACLE_SID CCE ... (6 Replies)
Discussion started by: Maddy123
6 Replies

10. Ubuntu

Can Scanner be Initialized from the Terminal

Hi, somewhat of a newbie with Linux, although I have been at it for about three weeks now. Is there a way to wake up or initialize my scanner with a command in the terminal? (6 Replies)
Discussion started by: klrman
6 Replies
X11START(1)						      General Commands Manual						       X11START(1)

NAME
x11start - start the X11 window system SYNOPSIS
x11start [options] DESCRIPTION
NOTE: Beginning with the next release of HP-UX, x11start and its components (xinit, sys.x11start, and sys.Xdefaults) will not be supported. vuelogin (an enhanced version of xdm) will perform all start-up tasks, regardless of whether or not HP-VUE is in use. See the HP Visual Environment User's Guide and the vuelogin man page for information on vuelogin. x11start is a shell script that provides a standarized method for starting up the X Window System server and selected X clients when the Visual User Environment (HP-VUE) is not used. Specifically, it performs the following start-up tasks: o PATH environment variable set-up appropriate for the X environment o X server start-up o selected client(s) start-up from a specific client file o general user resource loading from a specific resource file Components x11start encompasses the following components: o the /usr/contrib/bin/X11/x11start script o the /usr/contrib/bin/X11/xinit program o the default client script, /usr/contrib/lib/X11/sys.x11start o the default resouce file, /usr/contrib/lib/X11/sys.Xdefaults The x11start script o creates a command to load resources from the appropriate resource file using xrdb (see xrdb(1)) (This command is not executed immedi- ately but rather is assigned to the (exported) environment variable, doxrdb which is normally executed via the client script after the server has been started up.) o inserts /usr/bin/X11 ahead of /usr/bin in the PATH environment variable and appends /usr/vue/bin and /usr/contrib/bin/X11 to the end o execs xinit as follows (see xinit(1)): xinit clientscript options where clientscript is $HOME/.x11start or /usr/contrib/lib/X11/sys.x11start options are the xinit options exactly as specified on the x11start command line (see Options below). The xinit program o starts the server with the server arguments specified in options o runs the client script, passing it the client arguments specified in options o waits for either the server or client script to terminate and then terminates whatever remains running The default client script, /usr/contrib/lib/X11/sys.x11start o executes the environment variable, $doxrdb which was setup previously by x11start to load the appropriate resource file to the server o runs both mwm and hpterm with all client arguments specified in options o sleeps indefinitely so that the X Window System will not be shut down by xinit when all client script processes have terminated. The default resource file, /usr/contrib/lib/X11/sys.Xdefaults o sets the default Foreground, Background and BorderColor resources o contains sample resources for a number of common clients. Customized client and resource files can be created by copying the default files to $HOME/.x11start and $HOME/.Xdefaults, respectively, and then customizing them. Custom- ized files that exist (with the appropriate permissions) will be used by the x11start components in place of the default files. Options x11start options are the same as xinit options except that a client script cannot be specified. Arguments preceeding a "--" (double dash), or all arguments if "--" is not specified, are passed on to the client script and can be accessed as positional parameters within that script. Arguments following a "--" that begins with a slash (/) or a period (.) identify the server. If a server is not explicity specified, xinit determines the server from $DISPLAY if defined; otherwise from $XSERVERRC. If neither of these are defined, $HOME/.xserverrc is used if it exists and is executable; otherwise X :0 is used. Arguments following a "--" that don't begin with a slash or period are passed on to the appropriate server. See xinit(1) for more details. EXAMPLES
The following examples illustrate how x11start can be used to control the server and/or interact with the client script. x11start This starts the default xinit server and executes the client script (either /usr/contrib/lib/X11/sys.x11start or $HOME/.x11start) without passing arguments to either. x11start -bg black -fn 24x36 This starts the default xinit server and executes the client script, passing it all of the arguments. If the default client script is used, -bg black -fn 24x36 is be passed to both mwm and hpterm since both of their default command lines contain "$@". If the default client script is used, the actual xinit command executed is: xinit /usr/contrib/lib/X11/sys.x11start -bg black -fn 24x36 x11start -fg white -- :1 This starts the default server on display 1 and executes the client script with the arguments, -fg white. If the customized client script is used, the xinit command line is: xinit $HOME/.x11start -fg white -- :1 x11start -- Xhp -a2 -t 5 This starts the server, Xhp with the arguents, -a2 -t 5 and then executes the client script without any arguments. ENVIRONMENT VARIABLES
DISPLAY PATH XSERVERRC doxrgb FILES
/usr/contrib/lib/X11/sys.Xdefaults /usr/contrib/lib/X11/sys.x11start $HOME/.Xdefaults $HOME/.x11start $HOME/.xserverrc ORIGIN
HP SEE ALSO
X(1), xinit(1), hpterm(1), mwm(1), xrdb(1) X Version 11 Release 5 X11START(1)
All times are GMT -4. The time now is 11:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy