How to execute windows application in Jinternal frame

I want to execute windows application in a JInternal Frame ?

Attach an EventListener and
try{ Runtime.getRuntime().exec("C:\\Program Files\\Outlook Express\\ ..."); }
          catch(Exception e){}

Similar Messages

  • How to run windows application programs in mac book pro, how to run windows application programs in mac book pro

    how to run windows application programs in mac book pro, how to run windows application programs in mac book pro

    Install Windows..either by Boot Camp or via virtual machine from VMWare, Parallels or Virtual Box

  • How to execute an application in Solaris using Runtime.getRuntime.exec() ?

    I am currently doing a project which requires the execution of Solaris applications through the use of Java Servlet with this Runtime method - Runtime.getRuntime.exec()
    This means that if the client PC tries to access the servlet in the server PC, an application is supposed to be executed and launched on the server PC itself. Actually, the servlet part is not an issue as the main problem is the executing of applications in different platforms which is a big headache.
    When I tried running this program on a Windows 2000 machine, it works perfectly fine. However, when I tried it on a Solaris machine, nothing happens. And I mean nothing... no errors, no nothing. I really don't know what's wrong.
    Here's the code.
    public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
              Process process;                                                       Runtime runtime = Runtime.getRuntime();
              String com= "sh /opt/home/acrobat/";
              String program = request.getParameter("program");
              try
                        process = runtime.exec(com);
              catch (Exception e)
                   out.println(e);
    It works under Windows when com = "c:\winnt\system32\notepad.exe"
    When under Solaris, I have tried everything possible. For example, the launching of the application acrobat.
    com = "/opt/home/acrobat"
    com = "sh /opt/home/acrobat"I have also tried reading in the process and then printing it out. It doesn't work either. It only works when excuting commands like 'ls'
    BufferedReader read = new BufferedReader(new InputStreamReader(process.getInputStream()));Why is it such a breeze to execute prgrams under Windows while there are so many problems under Solaris.
    Can some experts please please PLEASE point out the errors and give me some advice and help to make this program work under Solaris! Please... I really need to do this!!
    My email address - [email protected]
    I appreciate it.
    By the way, I'm coding and compiling in a Windows 2000 machine before ftp'ing the .class file to the Solaris server machine to run.

    it is possible that you are trying to run a program that is going to display a window on an X server, but you have not specified a display. You specifiy a display by setting the DISPLAY environment variable eg.
    setenv DISPLAY 10.0.0.1:0
    To check that runtime.exec is working you should try to run a program that does not reqire access to an X Server. Try something like
    cmd = "sh -c 'ls -l > ~/testlist.lst'";
    alternatively try this
    cmd = "sh -c 'export DISPLAY=127.0.0.1:0;xterm '"
    you will also need to permit access to the X server using the xhost + command

  • How to execute a application folder with space

    Hi All,
    Can any one help to execute the application folder or a file that contains space.
    Below I have pated my sample coding:
    var myFile=new File("/E/test text/lanch.app");
    myFile.exceute();
    If I remove the space between "test test", it works perfect.
    Request advice.
    Thanks,
    Christober

    Hi,
    Run this:
    alert (mFolder = Folder.selectDialog());
    and notice how "spaced name" is alerted by your OS;
    Jarek

  • How to execute web applications without deploying them?

    How can I execute web applications without deploying them (without mentioning them in the server.xml)?
    I have an IWS 6.1 SP1 installed with default parameters (JES). I would like that a posix user could execute his own web application without administrator collaboration.
    Does it exist some sort of "autodeploy" like in tomcat?
    (I know about the invoker mapping in default-web.xml, just I don't realy understand what does it eventuate. I tried to unzip webapps-simple.war in the directory $IWS_SERVER_HOME/webapps/$instance_name/servlet/tmp/
    but the http://a.a.tg/servlet/tmp request failed:
    javax.servlet.ServletException: WEB2784: Wrapper cannot find servlet class tmp or a class it depends on
    ----- Root Cause -----
    java.lang.ClassNotFoundException: tmp
    How can I solve this? Users should have write permission to the directories in the classpath to put their servlet.class files into? Bad idea...
    (I tried to "execute" the $IWS_SERVER_HOME/plugins/java/samples/webapps/simple/webapps-simple.war)
    (Sorry for my language skills)

    Do as many of the rest of us do, until this behavior is changed (if ever). Eport your WEb gallery to your Hd and use an FTP client, there are so many, including Drreamweaver's, and Shareware ones, and upload just the relevant files/folders. Some can even check and do this for you.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • How to execute another application from java ?

    I want to execute another application ( not java ) from my java application. Is it possible ? How can we do it ? Please guide me...
    thanx

    Hi littlestuart,
    Yes it's possible.
    Your question is frequently asked, please search the forum or google for an answer.
    /Kaj

  • How to add scrollbar to the JInternal Frame

    How to add scrollbar to JInternal Frame?
    I have One JInternal frame i want it should have a scrollbar when we reduces its size.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html]How to Use Scroll Panes

  • How to Execute Webdynpro Applications

    Hi Gurus,
    Iam new to Webdynpro for ABAP . When iam executing Webdynpro Applications iam getting message like Service Connot Reached. Error no 403.
    I think my server need some setting, Please  solve my problem.
    Thank you.
    Regards
    Peram Srinivas

    go to start->run.. and type
    Ping <server domain name> -t and enter
    you can see the server round trip time
    if you dont't have domain name check out this
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm
    Abhi

  • How to execute an application on the client?

    hello
    we have a client/server architecture, with the Oracle Discoverer running on the clients, and the rest of the applications on the server.
    How can we run an application that is on the client from an application that is running on the server??

    Hi,
    What specific requirement are you looking for? Try WEBUTIL tool which can execute on the client directly.
    cheers
    Blesson

  • How to Execute WebDynpro Applications as Background Job ?

    Hi Gurus,
    We have developed a lot of WDJ applications with component reusage; ie,
    quite a lot of business logic are wrapped in WDJ Components which are
    re-used by other WD UIs.
    Now we'd like to automate some of the processes with background jobs
    and faced with a few problems :
    #1. How can we write a background WD application which can be
    triggered by external mechanism and without presenting any UI?
    #2. If we write the background program in a Java DC, how can we
    invoke existing methods in WD components ?
    Anyone got a clue ??
    Ying-Jie Chen

    Hello Amit,
    > Well I can think of a workaround in this case.If you are aware
    > of the suspend-resume functionality of the WD application then
    > its possible to run the WD application virtually in background.
    [ stuffs deleted ...]
    It sounds like a possible alternative to our requirement, I'll
    spend some time to investigate on the WD suspend-resume mechanism !
    > Also let me know why are you preffering the WD if you dont
    > require its UI
    Our application requires the process to be performed with UI interaction;
    with some instances it should be run as a background job. Either case involves
    RFC calls to backend SAP R/3 and it's easy for RFC access with WD
    Component.  Though it's also possible to use CAF application service for
    RFC access; due to some technical constrains, we did not use CAF
    framework. Therefore it ends up where we are now ...
    Thanks for your tip!
    Ying-Jie Chen

  • How to fix the position of JInternal frames added in JFrame

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Can any one advise how you get windows applications to open using citrix remote login on a macbook, can any one advise how you get windows applications to open using citrix remote login on a macbook

    I have logged into citrx and can see the home page with all the applications from my work environment but when I click on them they wont open and safari tells me it can access them as it has no available application to access it any help would be great as my work help desk has referred me to apple

    I have logged into citrx and can see the home page with all the applications from my work environment but when I click on them they wont open and safari tells me it can access them as it has no available application to access it any help would be great as my work help desk has referred me to apple

  • Issue in executing SAPUI5 applications in SAP MII and Eclipse IDE

    Dear Experts,
         I am interested to learn more about SAPUI5 which will be very useful for my upcoming customer projects.
         Regarding that i have followed certain steps from some other blog post.
         The steps that i followed  are explained below:
              In Eclipse Kepler IDE:
                   1. Download Eclipse Kepler IDE.
                   2. i follwed the steps that mentioned in the url "https://tools.hana.ondemand.com/#sapui5"
                   3. i created one SAPUI5 application project.
                   4. i tried to run the sample file, but i am getting error as below
    "JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available."
    5. Then i installed JRE 7, even after installing Java 7 i am unable to run the project. it shows sap.ui5 property file missed.
    In SAP MII 14.0:
         1. I just copy and paste the Hello World program from internet into HTML file.
         2. I tried to execute it, but in that i am getting error as " sap undefined error, sap.core.js Script error, etc,.."
    I am not sure about the steps which i was follwed as right.
    Kindly help me out how to proceed on further.
    Kindly guide me how to execute SAPUI5 application projects in Eclipse IDE and SAP MII 14.0.
    I need the procedure to execute the same in Eclipse IDE by using Tomcat server and how to deploy the SAPUI5 in SAP NW.
    The Components that i have in my System:
         1. Eclipse Kepler 4.3
         2. SAP MII 14.0
         3. JRE 7
         4. Tomcat 7
    Kindly tell me, is there any other softwares required?
    Thanks and Regards,
    Santhosh K

    Dear Experts,
         I am interested to learn more about SAPUI5 which will be very useful for my upcoming customer projects.
         Regarding that i have followed certain steps from some other blog post.
         The steps that i followed  are explained below:
              In Eclipse Kepler IDE:
                   1. Download Eclipse Kepler IDE.
                   2. i follwed the steps that mentioned in the url "https://tools.hana.ondemand.com/#sapui5"
                   3. i created one SAPUI5 application project.
                   4. i tried to run the sample file, but i am getting error as below
    "JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available."
    5. Then i installed JRE 7, even after installing Java 7 i am unable to run the project. it shows sap.ui5 property file missed.
    In SAP MII 14.0:
         1. I just copy and paste the Hello World program from internet into HTML file.
         2. I tried to execute it, but in that i am getting error as " sap undefined error, sap.core.js Script error, etc,.."
    I am not sure about the steps which i was follwed as right.
    Kindly help me out how to proceed on further.
    Kindly guide me how to execute SAPUI5 application projects in Eclipse IDE and SAP MII 14.0.
    I need the procedure to execute the same in Eclipse IDE by using Tomcat server and how to deploy the SAPUI5 in SAP NW.
    The Components that i have in my System:
         1. Eclipse Kepler 4.3
         2. SAP MII 14.0
         3. JRE 7
         4. Tomcat 7
    Kindly tell me, is there any other softwares required?
    Thanks and Regards,
    Santhosh K

  • How to Execute Power Shell Command From Windows Application.

    Hi All Experts,
    I want to execute power shell commands from my windows application.
    Is it possible ?
    Please let me know your comments..
    Thanks.

    I have not tried this, but apprently it is easy as in the sample pasted below. please see this article for more details
    http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx.
    Let me know how it goes...
    public string RunPowershell(string powershellText, SPWeb web, string param1, string param2) {
    // Powershell ~= RunspaceFactory - i.e. Create a powershell context
    var runspace = RunspaceFactory.CreateRunspace();
    var resultString = new StringBuilder();
    try
    // load the SharePoint snapin - Note: you cannot do this in the script itself (i.e. add-pssnapin etc does not work)
    PSSnapInException snapInError;
    runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out snapInError);
    runspace.Open();
    // set a web variable.
    runspace.SessionStateProxy.SetVariable("webContext", web);
    // and some user defined parameters
    runspace.SessionStateProxy.SetVariable("param1", param1);
    runspace.SessionStateProxy.SetVariable("param2", param2);
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(powershellText);
    // add a "return" variable
    pipeline.Commands.Add("Out-String");
    // execute!
    var results = pipeline.Invoke();
    // convert the script result into a single string
    foreach (PSObject obj in results)
    resultString.AppendLine(obj.ToString());
    finally
    // close the runspace
    runspace.Close();
    // consider logging the result. Or something.
    return resultString.ToString();
    Ok. We've written some code. Let us test it.
    var runner = new PowershellRunner();
    runner.RunPowershellScript(@"
    $web = Get-SPWeb 'http://server/web' # or $webContext
    $web.Title = $param1
    $web.Update()
    $web.Dispose()
    ", null, "New title", "not used");
    -Sangeetha

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

Maybe you are looking for

  • Problem with virtual Key Figure in a query

    Hi Experts, I would like to share my problem with the virtual key figure in a query: I have a query with a virtual key figure and when I eject the query by analyzer, the result sometimes is displayed and sometimes is not displayed (is equal to 0), wi

  • The order of Hidden text in a TOC

    I have set up a TOC for a document. Some of the TOC are questions and answers, the Para style for both questions and answers being brought into the TOC automatically. Some of the questions are extremely long so I'm creating hidden text on another lay

  • ACE 4710 and mangled HTTP requests

    After replacing a Cisco CSS/SSL  Accelorator and PIX firewall with an ACE 4710 to do load balancing and  SSL encryption behind an ASA firewall we started seeing mangled HTTP  requests in the Apache access logs for the servers in the server farm.  Her

  • How to change content repository database

    I'm migrating a test environment from a single-server to use a separate machine for the contentdb data. I can't find how to point the contentdb middle-tier application at the new database and install the contentdb schema. Can anyone give me some guid

  • WLS -JDBC sql server 2005, if sql server down bringing down entire cluster

    Hi , From 4 WLS we connect to 4 indivudual SQL Servers 2005 (non clustered) , if one sql server goes down it is bringing down the 4 WLS servers. Tried all the possible parameter tuning in WLS nothing helped. Is there any solution, if there is one sql