Launching different programs from a central one

Is it possible to get to one a separate from the one that you are working with?
If it is, how do you do it?

Can you be more specific about what I need to do with
that.You can google on it. There are several tutorials/articles which explains how to use Runtime.exec.
(You want to google on e.g.: java start process runtime.exec)
Kaj

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

  • 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...

  • 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])

  • 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.

  • 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?

  • Can't execute a DOS program from a Java one

    Hi everyone !
    I'm a student, working as an apprentice in a company, and I have to make a program to execute faster some daily routine.
    Here's my problem : I'm trying to execute a DOS program (mkisofs.exe) whick takes numerous arguments and enables me to create an ISO file.
    But, for now, I can't manage to make it work. I've used both Process and ProcessBuilder, but in vain (I'm a student, and not really a JavaProgrammingStar).
    If I would manually execute the command, I'll have to type under DOS the following command :
    "C:\Documents and Settings\myName\Desktop\Current\Local\mkisofs.exe"   -r -J -l -L -b "isolinux/isolinux.bin" -c "isolinux/isolinux.cat" -no-emul-boot -boot-load-size 4 -boot-info -table -graft-points -o D:\ISO\toto.iso "C:\Documents and Settings\myName\Desktop\Current\Local\Clonezilla"or (without spaces)
    C:\docume~1\myName\Desktop\Current\Local\mkisofs.exe   -r -J -l -L -b "isolinux/isolinux.bin" -c "isolinux/isolinux.cat" -no-emul-boot -boot-load-size 4 -boot-info -table -graft-points -o D:\ISO\toto.iso C:\docume~1\myName\Desktop\Current\Local\ClonezillaTill now, I've only managed to execute windowed program such as MsPaint.exe or DOS program from System32 directory such as taskkill.exe, but I couldn't execute, for example, tasklist.exe, or at least, I couldn't see the result of this command.
    Can anyone help me ?
    If some code is needed, jsut tell me.
    Thanks by advance !
    Hubert

    Ok guys, I'm French, so excuse me if I didn't use the correct terminology, but I'm quite sure you understood that I was talking about MS-DOS command prompt in Windows XP.
    Then, of course I've STFW, but none on my tries was successful. So a little help would be appreciated.
    I've first tried this :
    ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/K", "mspaint.exe");
                      pb.redirectErrorStream(true);
                      try {
                          Process p = pb.start();
                          BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                          try {
                              String rep = in.readLine();
                              System.out.println(rep);
                          } finally {
                              in.close();
                      } catch (IOException e) {
                          e.printStackTrace();//repTF.setText("erreur");
                      }It worked.
    But this :
    String CMD = "C:\\docume~1\\myName\\Bureau\\Current\\Local\\mkisofs.exe";
    String arg1 = "-r -J -l -L -b \"isolinux/isolinux.bin\" -c \"isolinux/isolinux.cat\" -no-emul-boot -boot-load-size 4";
    String arg2 = "-boot-info -table -graft-points -o D:\\ISO\\toto.iso C:\\docume~1\\myName\\Bureau\\Current\\Local\\Clonezilla";
    ProcessBuilder pb = new ProcessBuilder(CMD, arg1, arg2);
                      pb.redirectErrorStream(true);
                      try {
                          Process p = pb.start();
                          BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                          try {
                              String rep = in.readLine();
                              System.out.println(rep);
                          } finally {
                              in.close();
                      } catch (IOException e) {
                          e.printStackTrace();//repTF.setText("erreur");
                      }does'nt.
    What's wrong ? I should use a String table for args ?

  • How can I prevent two different profiles from interfering with one another?

    I have a serious profiles problem. I created a new profile with Profile Manager and then copied a well-established profile's contents into its directory before starting the new profile. Now, when I start either profile, it contains whatever tabs I had in the previously opened profile. I deleted a bunch of tabs and a window from the new profile but when I opened it after having opened and closed the old profile, the tabs and window reappeared. If I open some tabs in the new profile and then close it and open the old profile, the tabs appear in it, and vice versa.
    I open the original profile through a shell script:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1"</pre>
    I open the second one the same way but with the <i>-no-remote</i> parameter:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1 clone" -no-remote</pre>
    Why do the two profiles collide like that and how can I prevent this from happening?

    Are you using Sync then ?
    Or are you setting a bunch of tabs as the homepage ?
    If you cloned a profile they will start off the same and that will include the set of open tabs from the file ''sessionstore.js'' however profiles are independent and so should have there own sessionstore and History once they have been used.

  • Launch Wine programs from menu: FIle not Found

    I have installed eMule with wine, and get the "File not found" message when running it from the menu.
    This was discussed in THIS thread, but none of the possible solutions work for me
    Original:
    env WINEPREFIX="/home/daerunarch/.wine" wine C:\\windows\\command\\start.exe /Unix /home/daerunarch/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/eMule/eMule.lnk
    Doesn't work
    Edited the menu entry with alacarte:
    wine 'C:\Program Files\eMule\emule.exe'
    doesn't work
    wine '.wine/drive_c/Program Files/eMule/emule.exe'
    doesnt' work
    wine "/home/username/.wine/drive_c/Program Files/eMule/emule.exe"
    doesn't work
    wine "/home/username/.local/share/applications/wine/Programs/eMule/eMule.desktop"
    dosen't work
    Also all the previous begining with "env WINEPREFIX=" instead of "wine". Nothing worked o_0 What should I try now?
    Last edited by Daerun (2011-02-13 23:36:46)

    Null, the problem is not running from gnome menu. I can make it run from console, and it shows these messages, just in case there's some hint here:
    wine '.wine/drive_c/Program Files/eMule/emule.exe'
    wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    fixme:heap:HeapSetInformation (nil) 1 (nil) 0
    fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),4,3,(nil),0,(nil)) - stub!
    err:ole:CoGetClassObject class {5c63c1ad-3956-4ff8-8486-40034758315b} not registered
    err:ole:CoGetClassObject class {5c63c1ad-3956-4ff8-8486-40034758315b} not registered
    err:ole:create_server class {5c63c1ad-3956-4ff8-8486-40034758315b} not registered
    fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
    err:ole:CoGetClassObject no class object {5c63c1ad-3956-4ff8-8486-40034758315b} could be created for context 0x17
    err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions.
    err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033c914
    fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
    fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
    fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
    fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
    fixme:shell:IAutoComplete2_fnInit ACO_FILTERPREFIXES not supported
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca34
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca38
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca4c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca1c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca1c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca1c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca1c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca1c
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca48
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033ca48
    fixme:shell:IAutoComplete2_fnInit ACO_FILTERPREFIXES not supported
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033c9e8
    err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0033c9e8
    fixme:richedit:ME_HandleMessage EM_GETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
    fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
    Karol, that command didn't do anything for me...
    Turvyc, I know about aMule and have used it, but stuck to eMule because of some features it didn't have. If I can't run eMule I might as well return to aMule, as I know how to migrate configurations.

  • Call Program from an other one

    Hallo,
    I wonder if it is possible to call a standard Programm from my Report without leaving it. I have created a docking container that docks itself on each new Dynpro. Now if i call an extra Programm i don't have the d.container any more. I would like to see the d.container on the Dynpros of the new Programm as well. Is it possible?
    Thank you very much,
    Anton

    Hi,
    SDBILLDL is the std program for transaction VF04. This program is being called by other program as mentioned in the below code.
    submit sdbilldl via job jobname
                    number jobcount
              with p_vkorg = vkor1
              with s_vtweg in so_vtweg
              with s_spart in so_spart
              with s_vstel in so_vstel
              with p_fkdat = fkdat
              with p_fkdab = fkdab
              with p_kunnr in kunnr_sel
              with p_fkart in x_fkart
              with p_lland in x_lland
              with s_vbeln in x_vbeln
              with p_sort in x_sortk
              with p_allea = allea
              with p_allel = allel
              with p_alleb = alleb
              with p_allei = allei
              with p_allef = allef
              with no_faksk = no_faksk
              with p_pdstk = p_pdstk
              with p_samml = 'X'
              WITH P_ANZEI = ANZEI
              WITH P_VARNR = GS_SD_ALV-variant
              and return .

  • Running child programs from a Parent one...

    Hi everyone it's the newbie again.
    Is it possible to start a seperate flash application from a main flash application.  I really want it to be like how a messenger works... where the chat window is independent of the parent program and the user can minimize it or move it around the screen.  I also need to be able to pass variables to the "chat window".  I am thinking about using something like fsCommand maybe.. but I would also like the child window to be a swf and not exe file.
    What I got is a parent program that will be responsible for child programs.  The child programs will be started using variables that the parent initializes the child with (flashVar).  The child window will be similar to chat windows such as Yahoo messenger.
    Again I appreciate all the help this forum has given thus far.  You guys are a lifesaver!
    - Stan
    *Tip: If you want your project to stop growing in size or complexity, get your boss to take a vacation .

    Hey everyone,
    I am figuring to do it the VB / Flash way.  Thanks for your assistance on alot of stuff.  - Stan

  • Launch a program with different variant in one time

    Hi,
    User have to launch all day x times the same transaction but selecting an other saved variant a each time.
    Is there a program or transaction which can be used to launch a lot of program - variant in one time ?
    Thanks a lot
    Regards

    You can use a ECATT testscript to automatise it.
    It can launch different variants each time and how many times you want.
    Follow the documentation <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d4/80023c59698908e10000000a11402f/frameset.htm">link</a>
    Regards,
    Walter

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • Calling one java program from another

    Hello,
    How can I start another java program from one? Lets
    say I want Second.java to start by calling it from
    First.java. How do I do it? The two programs are given
    below. Any help is appreciated.
    Thanks,
    Amanda
    First.java
    import java.io.*;
    import java.lang.reflect.*;
    public class  First
         public static void main(String[] args)
              Process theProcess=null;
              System.out.println("Hello World from First.java!");
              String second=new String("Second.java");
              //System.load(second);
              //Runtime.getRuntime().load(second);
              try
                   theProcess=Runtime.getRuntime().exec( "Second.java"
                   System.out.println("after exec");
              catch (IOException ioe)
                   System.out.println(">>IOException thrown in
    First.java while calling
    Second.java."+ioe.getMessage());
    Second.java
    public class  Second
         public static void main(String[] args)
              System.out.println("Hello World from Second.java!");
    }

    Thanks, warnerja
    What if Second.java is on a remote machine i.e.
    First.java and second.java are on different machines?
    Will I have to use RMI?Well, you'd have to do some kind of remote invocation. Depends on what kinds of apps house the classes. There are all kinds of ways - web services, servlets, RMI, (maybe others...)
    That's a totally different question than what you originally posted, and would have been very relevant to say so in the first place.

Maybe you are looking for

  • TS1538 In Windows Vista my iPod Touch is recognised as a stills camera and the driver will not install.  Any ideas?

    Any advice on how to overcome this prob;lem would be appreciated.  I have followed the steps suggested by the online Apple Support without success.

  • Basic line chart help

    I am relatively new Crystal reports 11 and am having problems creating a lsimple ine chart. I am trying to trend two types of network errors over time. The type of errors are in one field and the values are 1 or 2, I have two formulas, one converts a

  • Maximum Memory size of Collections

    hi, can anyone please tell me how much data can be stored in a collection. I would be using an Arraylist to store objects created at runtime, but i am not sure how much data can be stored into Arraylist.?? Please reply , Thanks in advance

  • Chinese characters in reports 6i

    Hello all, I am working on some chinese reports.. when i open RDF report in Report Builder 6.0.8.11.3 and save it with out modification the lables in chinese characters are missing when i port in run inthe application.. the data from the dtabase is d

  • Account Balance Disappeared

    After upgrading to iTunes 11 my account balance of over $37 dollars disappeared.  How do I get it back?