JMF in Unix-Shell:  No X11 DISPLAY variable was set

Hello guys
I've got a client-server application. The server runs on linux and is started in the unix-shell.
When the server just sends out data which was received before, everything works fine. But when I'm using a processor (or a player) it says:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
How can I avoid this problem?
Thanks in advance,
Chris

VladimrN wrote:
..No X11 DISPLAY variable was set, but this program performed an operation which requires it.Sounds like the problem of running in a headless environment. A google on "java headless x11" seems to turn up a number of hits.

Similar Messages

  • No X11 DISPLAY variable was set

    Hi,
    UCM 11g is installed in the unix server. I connected to the server thru putty and run the batch loader (/.BatchLoader.sh), im getting the below error.
    No X11 DISPLAY variable was set, but this program performed an operation which r
    equires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1
    59)
    at java.awt.Window.<init>(Window.java:432)
    at java.awt.Frame.<init>(Frame.java:403)
    at java.awt.Frame.<init>(Frame.java:368)
    at javax.swing.JFrame.<init>(JFrame.java:158)
    at intradoc.apps.shared.SplashFrame.<init>(SplashFrame.java:48)
    at intradoc.apps.shared.AppLauncher.reportOperationError(AppLauncher.jav
    a:386)
    at intradoc.apps.shared.AppLauncher.reportError(AppLauncher.java:426)
    at intradoc.apps.shared.AppLauncher.reportFatal(AppLauncher.java:442)
    at BatchLoader.main(BatchLoader.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.loader.IdcClassLoader.invokeMain(IdcClassLoader.java:338)
    at intradoc.loader.IdcClassLoader.startMain(IdcClassLoader.java:171)
    ... 1 more
    How can we rectify this.

    http://support.oracle.com
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=How%20to%20Launch%20Content%20Server%20Command%20Line%20Applets%20Using%20X11%20Forwarding%20Over%20SSH&viewingMode=1143&bmDocID=445469.1&bmDocType=HOWTO&from=BOOKMARK&bmDocDsrc=KB))

  • No X11 DISPLAY variable

    Hi ,
    I am trying to start the Admin ACC from dynadmin. But when i click Start ACC in server VM . I am getting following error.
    The ATG Control Center could not be started. Dynamo received the following error message from the JVM: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    Please help me to fix the issue.
    Thanks ;
    Mark

    ACC is Java Swing based client UI so it requires a display. Try setting this on the shell where you are starting your server if you are on the same host:
    export DISPLAY=:0.0
    You might want to restart your server after setting this if you want to start ACC in server VM.
    In case you are using PuTTY to tunnel through the UNIX machine then check if "Enable X11 Forwarding" is selected in PuTTY settings. You can find that option under Connection -> SSH -> Tunnels

  • Unable to execute runInstaller: Check if the DISPLAY variable is set

    I am unable to run the Oracle Installer (runInstaller) on my Solaris10 client (Windows Vista PC). The IP address of my PC is 192.168.0.191 and the IP address of the remote Sun server (from which I am invoking the runInstaller) is 192.168.0.192.
    COULD ANYONE PLEASE HELP ME WITH THE FOLLOWING ERROR. Thank you in advance.
    Database server machine: Solaris 10
    Client machine: Windows vista
    Connected via: SecureCRT with X11 packet forwarding enabled
    ---( ERROR )-----------------------------------------------------------
    oracle@pvsparc$ id -a
    uid=100(oracle) gid=102(oinstall) groups=102(oinstall),100(dba),101(oper)
    oracle@pvsparc$
    oracle@pvsparc$ echo $DISPLAY
    192.168.0.191:0.0
    oracle@pvsparc$
    oracle@pvsparc$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10
    Passed
    Checking Temp space: must be greater than 250 MB. Actual 2073 MB Passed
    Checking swap space: must be greater than 500 MB. Actual 2160 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,at which time they will be rechecked.
    Continue? (y/n) [n]
    -------------------------------------------------------------------------------

    I don't know XMing, but for CygWin, you have to use a Cygwin windows to enable the XClient, not an external tool. Did you use the XMing tool windows, or did you continue with SecureCRT ?
    Steps for Cygwin :
    1. install from http://cygwin.com/setup.exe
    2. choose installation from internet
    3. the following server worked for me http://cygwin.cybermirror.org
    4. ensure the following packages are check :
    xorg-x11-base (2 KiB; required, automatically selects a base set of packages for the typical installation)
    xorg-x11-bin (1.2 MiB; optional, executables for xterm, twm, etc.)
    xorg-x11-bin-dlls (2 MiB; optional, libraries (DLLs) for executables.)
    xorg-x11-bin-lndir (5 KiB; optional, lndir program, useful for developing)
    xorg-x11-devel (964 KiB; optional, additional files needed to compile programs for Cygwin/X)
    xorg-x11-etc (335 KiB; required, configuration files for the X Server and programs in xorg-x11-bin)
    xorg-x11-f100 (12 MiB; optional, 100 dpi fonts (75 dpi fonts are used by default))
    xorg-x11-fcyr (368 KiB; optional, Cyrillic fonts)
    xorg-x11-fenc (489 KiB; required, font encodings)
    xorg-x11-fnts (16.4 MiB; required, 75 dpi fonts)
    xorg-x11-fscl (2.2 MiB; optional, Speedo and Type1 scalable fonts)
    xorg-x11-fsrv (201 KiB; optional, X Font Server)
    xorg-x11-libs-data (154 KiB; required, X11R6/lib/ files)
    xorg-x11-man-pages (551 KiB; optional, man pages)
    xorg-x11-man-pages-html (596 KiB; optional, man pages in html format)
    xorg-x11-nest (1.1 MiB; optional, Xnest nested X Server)
    X-start-menu-icons (4 KiB; optional, adds icons for X Clients to the Start menu)
    X-startup-scripts (22 KiB; required, example X Server and client startup scripts)
    xorg-x11-vfb (1.2 MiB; optional, X Virtual Frame Buffer (Xvfb) server)
    xorg-x11-xwin (1.3 MiB; required, the Cygwin/X X Server)
    xorg-x11-xwin-gl (761 KiB; optional, the Cygwin/X X Server with ***EXPERIMENTAL*** GLX acceleration)You may also want to ensure that the inetutils and openssh packages are selected if you wish to use telnet and ssh to connect to remote machines.
    5. open the Cygwin icon on your desk
    6. run the following command in the new opened window (a DOS window command) :
    sh /usr/X11R6/bin/startxwin.sh7. from the new window (a X window session), run
    ssh -Y RemoteServerIPaddress8. test by runing a xlock command
    Nicolas.

  • Cannot execute autocheck DISPLAY variable not set Oracle 10g Solaris 10

    Hallo!I am a total Solaris newbie. I am trying to install Oracle 10g on Solaris 10 but when I run the runInstaller,th following error appears
    Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<I have set the display parameters in the oracle user via command
    $ export DISPLAY=joey-solaris:0.0
    The SUNWxwplt is installed.
    How do I resolve this?
    Thanks

    4joey1 wrote:
    xclock can run as root user but not as oracle user
    by doing
    $ export DISPLAY=joey-solaris:0.0
    I think its similar to
    $ DISPLAY=workstation_name:0.0
    $ export DISPLAY
    as shown from your reference http://download.oracle.com/docs/cd/B19306_01/install.102/b15697/app_ts.htm#sthref1226 but still the error appears.
    Thanks.Assuming you are connecting to the solaris box from you workstation via telnet or ssh ...
    Do you have an x-server (such as Exceed or xming) running on your workstation?
    Did you set DISPLAY to the ip of your workstation, not the solaris server?
    DISPLAY is redirecting "x" output to the specified location (your workstation), and there needs to be an x-server running at that location.

  • Re: Failed to Start Deployment Server -- X Window DISPLAY variable not set

    I don't know how you have hit that in an normal environment:-( Can you describe what you did? As long as you start the bundled AppServer in the same environment as Creator, both need the DISPLAY set.
    A guess, did you try to install Creator as root and then use it as normal user? Don't do that. Creator is intended to be installed by the user who will use it!
    I know our updated JDK now throws different exceptions when the DISPLAY variable is not set than the one before. I found that (but too late for the release) and have the needed change. But so far I was not aware that any customer had actually hit that. So it was not considered a high enough priority to go into a hotfix. I'll file a CR and the fix will hopefully make it into a patch.
    As a short term workaround for that problem (But I still believe your setup has other problems):
    Go into <Creator_home>/SunAppServer8/lib/ and replace processLauncher.xml with the backup (processLauncher.xml.bak).
    The only thing you will loose, is the little icon in the Gnome/KDE/SystemTray.
    I hope this helps,
    Thanks,
    -- Marco

    I don't know how you have hit that in an normal environment:-( Can you describe what you did? As long as you start the bundled AppServer in the same environment as Creator, both need the DISPLAY set.
    A guess, did you try to install Creator as root and then use it as normal user? Don't do that. Creator is intended to be installed by the user who will use it!
    I know our updated JDK now throws different exceptions when the DISPLAY variable is not set than the one before. I found that (but too late for the release) and have the needed change. But so far I was not aware that any customer had actually hit that. So it was not considered a high enough priority to go into a hotfix. I'll file a CR and the fix will hopefully make it into a patch.
    As a short term workaround for that problem (But I still believe your setup has other problems):
    Go into <Creator_home>/SunAppServer8/lib/ and replace processLauncher.xml with the backup (processLauncher.xml.bak).
    The only thing you will loose, is the little icon in the Gnome/KDE/SystemTray.
    I hope this helps,
    Thanks,
    -- Marco

  • X11 DISPLAY troubles

    Hi,
    We've been developing a Web Application in Windows, using the Sun Java System Application Server Platform 9 installed on the same PC. Just now, we want to move the web application into a Red Hat Linux Server, also with the Sun Application Server, and run the application with a host PC wih Windows. The application starts OK, but launches an exception (cited below) when it has to open a 'File Dialog Box'. The exception is:
    Servlet.service() for servlet Faces Servlet threw exception
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    Note that we doesn't have this problem running the application in local using Windows.
    Actually, the Red Hat Linux has no graphical environment.
    How to solve this problem? It's compulsory to have a graphical environment in the server?
    Thanks a lot!!
    Xavi.

    Your app apparently has a GUI, but you're running the program without a GUI. Do you see the conflict there?
    Linux (usually) uses X11 as its GUI toolkit. The error message you're seeing is saying that it's trying to use X11, but the way you're running the program, X11 hasn't been properly set up.
    A good way to deal with this is:
    1) install Cygwin, including the X11 utilities.
    2) start the X11 server on your PC. The command for this is "startxwin.bat", in Cygwin, I believe.
    3) connect to your linux box. Either:
    3.1) use the xhost utility to configure your PC's X server to accept
    connections from your linux box, and then set the DISPLAY variable
    on your linux box
    or
    3.2) use X11 tunnelling (e.g., if you're using putty) when connecting to
    your linux box
    4) then you can run the program

  • Generate RMAN backup Script using unix shell script

    Hello,
    Could somebody give me a unix shell script that would generate RMAN script based on some user defined parameters in a config file.
    e.g.
    rman.conf
    CHANNELS=4
    USE_CATALOG=Y
    DEVICE='sbt_tabe'
    etc.,
    many thanks,
    kam

    You can actually encapsulate the RMAN commands inside the shell script.
    However if you really want to create a seperate RMAN script file, you can use the unix shell's "echo" command to write set variables to a file.
    Thus, for example,
    echo "rman target / catalog rman/rmanpassword@crcat" > RMAN_Script.rmn
    echo "backup database plus archivelog" >> RMAN_Script.rmn
    echo "backup archivelog all" >> RMAN_Script.rmn
    creates RMAN_Script.rmn with 3 commands.

  • Return codes from sqlldr command from unix shell script

    I am trying to capture error code from sql loader from unix shell script and display proper messages.
    sqlldr parfile=sdb.par control=$cntlfile data=$infile bad=$badFile log=$logFile rows=10000
    rows=10000
    retcode=`echo $?`
    case "$retcode" in
    0) echo "SQL*Loader execution successful" ;;
    1) echo "SQL*Loader execution exited with EX_FAIL, see logfile" ;;
    2) echo "SQL*Loader execution exited with EX_WARN, see logfile" ;;
    3) echo "SQL*Loader execution encountered a fatal error" ;;
    *) echo "unknown return code";;
    esac
    Eventhough, there are errors while executing sqlldr, it is always returing recode zero. What could be the possible reason
    Please advice

    Is there a typo in your code ?
    sqlldr parfile=sdb.par control=$cntlfile data=$infile bad=$badFile log=$logFile rows=10000
    rows=10000
    retcode=`echo $?` In this code, you get the return code of the statement in bold which is not the sqlldr statement ...

  • Issue in starting Oracle 11g Installation - Display Variable

    Hi Experts,
    I am getting the below error message when I run ./runinstaller
    "Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed"
    also, xclock was failed before executing ./runinstaller,
    As per the installation guide I set the display variable,
    The "Display variable" is working for users root and sidadm. However, for orasid display variable is not working,
    any idea,
    I have already refered Oracle11g Installation issues and SAP note
    and 1431796 - Oracle 11.2.0: Troubleshooting the Software Installation
    Additional information :
    output of >> ls -la /usr/bin/xdpyinfo
    -rwxr-xr-x 1 root root 36944 May 24  2013 /usr/bin/xdpyinfo
    Oracle version : 11g
    OS: SUSE Linux Enterprise Server 11 (X86_64)
    Oracle Media :
    51047701    ORACLE:11.2:RDBMS:Oracle RDBMS 11.2.0.4 for Linux X86_64 DVD:LINUX_X86_64:LINUXX86_64:D51047701
    51047688    ORACLE:11.2:CLIENT:Oracle CLIENT 11.2.0.4 V1:D51047688
    Thanks

    All,
    The issue is solved, I was using Xmanager and when I test xclock, sometimes it was working and sometimes it was not,
    I suspect the issue is with vpn, but am not sure.
    However, with MoboXterm it was fine without any issues.
    @ Reagan Benjamin and Nick loy
    output of echo $DISPLAY for user orasid is same as root
    Thank you all for your suggestions,
    Thanks, Ganesh

  • Ias 10.1.2 and DISPLAY variable

    Hi all.
    In production I have installed aix server (5.3) with ebs 11.5.10.2 and ias 10.1.2 (in new ORACLE_HOME). Everything works fine, but to make it clear, i need help regarding DISPLAY variable.
    On ebs 11i, DISPLAY variable is set to non existing IP address for X server and everything works fine, only need Xvnc up.
    On IAS 10.1.2, Xvnc is up and i have to set DISPLAY variable to X-Win server on second win machine. In this case everything works.
    Can anyone explain why is it so , because i do not understand the concept of XWin.
    Thanks
    Boris

    Hi,
    I have the same problem. Do you find something about putting jsf in OAS 10.1.2 ?
    Regards

  • Accessing Unix Shell Variables

    Is there any way to access the value of a Unix Shell environment variable from within a PL/SQL Procedure, either directly or via a middle-tier such as a SQL script?
    Thanks for any help provided.

    If you just need what an environment variable is at the start of the program (changes during aren't important) you can pass it into java at the command like.
    For instance, in one of my programs I needed the display variable $DISPLAY. That's not going to change after I start the program so I just did this.
    java -DXDISPLAY=$DISPLAY myMain
    the -D switch lets you set the java properties at the command line. Now inside of java code I can write.
    System.getProperty("XDISPLAY");
    That will return me the display string. So now for unix systems you just have a start up script with that in it. (It's annoying to type long command lines all the time) In windows the display doesn't matter, so in my program it all works nicely... You can modify accordingly.

  • Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
         at java.awt.Font.initializeFont(Font.java:264)
         at java.awt.Font.(Font.java:298)
         at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

    A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
    that has to be a first.
    If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
    running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
    <hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
    export DISPLAY=hostname:0
    where hostname is the name of the host running an XServer and the .xhosts file allows access to the
    XServer from the display client.
    Apparently, you are not at the console?
    Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
    it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
    Bill
    "D. Alvarado" wrote:
    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
    at java.awt.Font.initializeFont(Font.java:264)
    at java.awt.Font.(Font.java:298)
    at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

  • DIsplay variable setting ReflectionX in Bash shell

    Everyone,
    Can somebody help me with setting display variable for running Configtool in ReflectoinX in Bash shell.
    Appreciate your time. Thanks.

    > It looks like it will work..only thing is that we need to set display variable..i assume.
    If you logon as <sid>adm then no DISPLAY (or other variable) must be set if you use XDMCP.
    > I am doing sudo for opening a java tool which needs x window..other x windows like visual admin is working fine but for configtool, i am getting this error saying display variable is not set.
    That's what I was saying - do not switch users (sudo, su etc.) - that will delete the environment and invalidate .Xauthority.
    > I am not given the <sid>adm password, can i just use X window with sudo OR do i need to get the <sid>adm password to start the configtool..
    In that case I would not use XCMCP to connect but a pure telnet, do sudo and then set the DISPLAY to
    <your-IP>:<reflection-display>. the latter can be found when open Reflection in the lower part of the configuration window.
    Markus

  • How could I get unix shell variable value?

    I want to get a unix shell variable value because I will use it in my java program. For example $HOME, I have wrote like below,
    Runtime runtime = Runtime.getRuntime();
    Process proc = runtime.exec("echo $HOME");
    But I could not get $HOME value, just get "$HOME" as result.
    Why could not I get the value?

    Other than passing them as params to your program, the only way to read them runtime is either pipe them thru a stream or use JNI.

Maybe you are looking for

  • Sales Order Text to Production Order Text

    Dear Experts, When creating a sales order in VA01, I added in some comments in the item level Texts tab. How can I configure the system so that when a production order is created from this sales order, the comments entered in the sales order will be

  • Error in Process in PO for Classic Scenario

    Hi, I am working with classic scenario. I have created one catalog for services where I used service as a catagory(from backend R/3). I have maintained contracts for this services in the Backend R/3 as well as vendor lists with respective contract in

  • Wish list for Encore

    I don't see a wish list category here so maybe we could start one. My number one irritant in Encore 2.0 is the default ON of "Sync Button Text and Name." This in on by default and it should be off or unchecked in my opinion. I do all my menus in Phot

  • LR 4 - image does not appear in Preview and will not print`

    The selected image appears on the main/center panel but not in the preview screen.  Printing results in a white sheet of paper with no image at all.  The image has been updated to LR 4 - but made no difference.  I've served help and the forums (where

  • Business Events Data Not Dequeuing

    Hi , We would like to capture a few business events in oracle BOM and PO that are of interest to us. In order to do this, we deploy oracle SOA composite with BEPL in the Oracle Fusion Middleware Control. The oracle SOA composite is configured for a p