Launching windowed program from getRuntime().exec( )

hello,
I have a tomcat web app that launches media player from getRuntime().exec(mediaplayerExecutable). It works fine when i run tomcat manually (startup.bat) but it only plays audio when I run tomcat as a service. when i look at the error messages for media player process, it complaining about "direct3d video output error: Could not read adapter capabilities"....
I believe it is execution context issue. any idea? Thanks in advanced.

Services in Windows must not have a user interface.
If I remember correctly, there are special loopholes that (native) Windows services go through to get at least some user interaction, but by default you can't interact with the user via the UI at all.
This seems to go for applications started from services as well.
But why would you ever want to start a video client from a service? Or a application server at all?

Similar Messages

  • [Solved] Launching Graphical Programs From The Terminal

    Occasionally I launch graphical programs from the terminal and they usually spit out what they're doing in the background, I know you can send this output to /dev/null but is there a way to have that is the default setting (ex. not having to type &> /dev/null each time) and then somehow turn console output back on when I want to debug something? I tried creating an alias but that didn't work.
    Last edited by brando56894 (2011-07-26 04:17:11)

    brando56894 wrote:
    I put it in my .bashrc and when I reload .bashrc I get this:
    bash: /home/bran/.bashrc: line 12: syntax error near unexpected token `;'
    bash: /home/bran/.bashrc: line 12: `no() { "$1"&>/dev/null & ;}'
    Remove that '&' and try again. (remember to reload the .bashrc)
    jasonwryan wrote:What, exactly, did you put in your .bashrc?
    He used your function but with "my" '&' - w/o 'nohup'.
    Last edited by karol (2011-07-26 04:25:55)

  • Adobe Updater requires password when I launch any program from the suite

    It is very annoying, but not a destructive issue.
    When I launch any program from Creative Suite 3 Design Premium (6 programs) the Adobe Updater pops out and asks for a password. I can either provide a password and proceed, or deny the password and still proceed with the program.
    Is there any way to stop the Updater from popping up?
    I have it on my two machines Mac Pro (2x 2.66 GHz, 11GB RAM) and Mac Book Pro (2.33 GHz, 3GB RAM).
    I am sure that there is some settings which I simply overlooked. Can anyone point it to me?
    I would appreciate that. Thanks.
    Jack

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • PLSQL WANTS TO RUN  WINDOWS PROGRAM FROM PLSQL PROCEDURE

    WANTS TO RUN WINDOWS PROGRAM FROM PLSQL PROCEDURE.
    I want to run EXE file from pl/sql program , i have tried host it does
    work in pl/sql .
    Is there any Solution to this problem
    Thank you

    Hi,
    It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
    I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
    What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
    Thanks,
    Mark.

  • How to execute a Window program from Unix box using Java

    I am trying to execut a program running on a Window box from Shell Script on a Unix box. Does anybody knows how to do that using Java. Thanks. Any feedback appreciated.
    kevin

    You need to use
    String fileNane = "setup.exe";
    Runtime.getRuntime().exec(fileName);that is if you are writing code
    if you are just calling if from a terminal just write
    java then the file name ( well I think that is right :)
    I do know that the code above work as I have it working on a windoze box
    Craig
    Hope this is right if not please let me know

  • How to launch a program from Director?

    Hi, I'm new to Director.
    I want the user of my Director movie to click on a button
    that launches Adobe Acrobat and a help file (external to the
    Director movie).
    How do I do this?

    I have a similar question... can Director be used to launch a
    program? I understand that you can tell it to open a file, in which
    case the default application is automatically launched, but can you
    give it a specific command line to execute?
    I have SCALA MM200, and it can execute command lines from
    within Windows, but as I recall it wasn't a very seamless
    transition between the presentation and the launched program. I
    hesitate to keep using MM200, since it was designed for Win 98/NT,
    but rather than buy new software it might be best to stick with
    what I've got if it still works under XP.
    Seems to me a lot of current "multimedia" software is great
    for animations and presentations, but there's little consideration
    for creating a true GUI with it that will do stuff outside of the
    presentation itself. I suppose I should go with VisualBasic or
    something like that, but my programming days are 20 years behind
    me, and there's still the issue of buying new software (unless VB
    is free, which I doubt).
    I plan to try MM200 under XP, but if it doesn't work, or
    doesn't perform quite as I'd like it to, it would help to know that
    Director could work. However, if there's no way to execute a
    specific command line, it probably isn't the right choice for me.
    A quick summary of my planned application is to present a
    menu of choices to the user, and then execute certain programs
    depending on the choice. The presentation will probably hide in the
    background while these programs run, so another consideration is
    avoiding any conflicts. The programs are video game emulators, and
    certain options are set in the command line, so simply telling
    Director to open a game file may not work, even if the emulator is
    set as the default application to open that file. I'll still need
    to pass certain command line switches to the app, and I'm not sure
    I can do that in Director.
    Thanks in advance for any help! :) (I never visit the forum,
    so it's best to e-mail me at [email protected])

  • Supressing windows spawned from Runtime.exec()

    Hi,
    I was wondering if anyone had any suggestions on how to suppress windows spawned from using Runtime.exec(program). I've had a good look at the Process object returned from this and cant find a way to do it. I'd like to keep the process being run completely invisible from the user but i'm getting a blank window appear - spawned from the app being run.
    Any ideas?
    TIA,
    Danny

    The exec is called k.exe - its a programming language. I'm writing an interface for a database system called KDB which is implemented in K. (called using 'k db args...').
    Have a look at www.kudib.com if you want to see a bit more about my project or www.kx.com to learn more about K and KDB.
    Danny

  • Executing Windows shortcuts through getRuntime.exec

    Hello,
    I am writing a desktop component in which you should be able to drag and drop local windows icons and they will become an icon on my desktop.
    I am able to get the shortcut .lnk location by accessing the list flavor from the native drag and drop... for example if i drop a native shortcut i get:
    C:\Documents and Settings\pankaj\Desktop\Shortcut to eclipse.lnk
    i can even access the file system icon by:
              ImageIcon iconImage = (ImageIcon)FileSystemView.getFileSystemView().getSystemIcon(execFile);
              iconImage.setImage(iconImage.getImage().getScaledInstance(32,32,Image.SCALE_AREA_AVERAGING));
    but i tried to execute the .lnk command using getRuntime.exec(cmd); it didnt work obviously.. how can make this work?
    you can check out info on my project here:
    http://www-unix.globus.org/cog/wiki/moin.cgi/JavaCogDesktop
    thanks.
    pankaj

    Did you try "start"?
    new String [] { "cmd" , "/c", "start" , "path-to-my-shortcut" }

  • How do I set the Launch window size (from launch from an LMS) in Captivate 5.5?

    When my project launches from the LMS, the lauch window is smaller that the actual project size and requires the user to resize the window to see the whole project. My LMS administrator tells me that the launch window size is not controlled by the LMS so I am trying to figure out how I can set this to match the project dimensions.

    The size of the browser window CAN be controlled by the LMS, but some LMSs are hopeless in this area and don't provide the settings to do so.
    Moodle for example allows you to specify that the course content will open in a new window each time an item in the LMS TOC is clicked and what the height and width of that window will be. However, all versions of SumTotal before the latest one did not give you this option (and that despite the exhorbitant price difference between these two products.)
    So your LMS admin might be correct in that HIS particular LMS cannot control the size of the launch window, but that's not because no LMS can do this.

  • Execute a Window program from Unix box using Java

    Hello everyone,
    I need to call a application running on a Window box from Shell Script on a Unix box. Does any one have some idea how to do it? Sample codes? I was thinking using Java. Any feedback appreciated.
    Thanks.
    CrossonKevin

    Search
    Profit
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=execute+program

  • Launching External programs from an addon cause Client to stop

    Hi.
    We have an add-on that allow via configuration to launch other programs/files from SAP (Remote desktop, PDF-documents, etc.).
    Launching other processes from an add-on is easy with the System.Diagnostics.Process.Start(file, arguments);
    This has worked since SBO2004A, but since we began working with SBO2005A SP01 launching external programs cause the SAP Client to freeze every 5-10th time or so...
    Nothing except stopping the add-on-process works.
    When the add-on is terminated the Client "Wakes up" to inform that add-on has been disconnected.
    Anyone else have had a similar problem?
    <i>Kind Regards
    Rasmus Wulff Jensen | http://www.b1up.net</i>

    Regarding the thread, I whought about it, but since it is a process.Start, it a whole different process and threads should not have anything to do with it...
    As always, yes I've created a message for this.... And got the normal response from SAP Support "We cant reproduce the issue... please send sample code"... sigh.... Hate random error that can't be reproduced... and sample code is hard to produce when you have created a whole framework above the SDK... I almost never do any "Core" SDK...

  • Starting Windows program from APEX

    Is it possible to start a Windows program lets say from a button in an Oracle Application. If so any suggests would be great

    This didn't quite work. I put the following into the Page section: HTML Header
    <SCRIPT Language="JScript">
    function runcmd() {
    File="C:\Program Files\FMS\Sentinel Visualizer 4.0\SentinelVisualizer.exe";
    WSH=new ActiveXObject("WScript.Shell");
    WSH.run(File);
    </SCRIPT>
    I am not sure that it is suppose to go in this section. I have put other scripts in this section and it worked ok.
    The following I put into a region a HTML type and entered the following
    <! A href="#" onClick="runcmd(); return false;">Run wordpad.exe<!/A>
    Once again I am not sure this is the right spot either. All I get when I click on the link is an error on the page. Can you be specific as to where each part of the script goes in order to get this to work. I have tried severla spots with the a href (Source, footers but to no avail)

  • Calling windows programs from Java

    Hello,
    I need to find how to call and pass parameters to windows programs. Specifically I need to call MS Sql server, there is call that I can do from command promt but I would like to give it some GUI interface and ease of use so I could pass some parameters to the program and execute it.
    Thanks.

    Hi thanks for all replies !
    Ok let me explain more about my problem.
    I have a SQL server which runs on MS machine and there is thousands of stored procs that my be recreated once in a while from a directorys. So we have scripts which we have to manually update every time new stored proc is written and run against the server to update all of them at one batch.
    Now I often have to browse to this directory from linux machine and I basically already written the Java program that gets all the files in the directory and passes them via JDBC to the server.
    Thats where the problem starts, when you calling and passing sp to sql without any header seting the jdbc is fine but when you pass sp with such settings for instanse as "SET QUOTED_IDENTIFIER and SET ANSI_NULLS OFF" in the header of stored proc then SQL server complains and fires exceptions on me.
    So this is my problem.

  • Can ANT just launch my program from a browser without apache?

    Or do I need to learn how to use the Java Web Start.
    I'm just trying to find an easy way to launch the program for people.

    I have a GUI swing app that I built and have a jar -- im new to all this and was trying to figure the easiest way to present the program to people.
    I wrote a batch file to open the app and that worked ok, but wasnt sure if this ANT stuff would allow me to present a link from a browser to launch the program.
    I KNOW that java webstart might work, but havent learned about that either.

  • How to close other Windows Programs from a Swing GUI ?

    I am making this really simple login program that once a user has successfully entered a username and password, and this is checked through a mySQL database , I run an Internet Explorer Windows.
    Now I am trying to setup a logout button and when they push this button ideally the open Internet Exlporer Windows would close.
    Does anyone have an idea how to do this is Swing or the wider java language or maybe even something built into windows ?
    S.

    It's as simple as obtaining references to the Windows and calling dispose() on them. How you obtain the references is entirely up to you. For example, you can create a List to hold all the children windows/dialogs that are created. And on logout you iterate through the list, dispose the child windows, and remove them from the list. Or maybe the child windows can add themselves as listeners to the logout button. When it's clicked and an ActionEvent is fired, the child windows can dispose of themselves automatically.

Maybe you are looking for

  • No alt key access to top menus in full screen mode Ps CS5 Ext?

    I'm using the trial version of CS5 on a Win7 machine, after using Ps CS3 for a fair amount of time.  When painting in Ps, I am almost always in full screen mode.  In CS3, you could be in full screen mode and hit the alt key plus the active letter of

  • No audio when playing YOUTUBE videos on ipod touch via a docking station

    Hi there, when my ipod touch is docked on its docking station, it will not play audio on youtube videos, it will play the video but not the audio through the docking station speaker. It used to play audio without problems before, but recently it has

  • Query regarding file content conversion using file adapter

    Hi All I have a question regarding file content conversion in file adapter. I have a file coming in the following format. AA,111,222,333 BB,444,555,666 CC,777,888,999 My incoming message structure has a hierarchy. The CC record is a structure part of

  • Iphoto for free download anywhere ?

    I have just got a new macbook pro to replace my old white macbook. On the new laptop there is no ilife/no iphoto ( have checked applications, finder and spotlight. All I need is something like iphoto 6. Downloads from the camera, easy to store, can t

  • Lightroom CC standalone - hangs on sign-in

    I've purchased/installed standalone lightroom CC. After exiting software earlier today I tried launching it again and I get the following screen that just sits there for minutes... Any clue how to fix it? Eventually it times out with