Program freezes while running executables.

I'm working on a java installer & while doing the install the program window freezes until it's done. I'm trying to figure out how to make it not freeze so that I can implement some kind of progress bar. Here is the codes I'm using to install java I'm using the same code for everything.
     public void java(String curDir) {
          try {
            String prop = install.ReadProps("WinJava");
               String command = "\"" + curDir
                         + "\\" + prop + "\" /s /v\"/qb\"";
               System.out.println(command);
               install.runCommand(command);
          } catch (Throwable e) {
               e.printStackTrace();
     }

shashi_rajak wrote:
use thread -> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html
And you, use a non-deprecated API: [http://java.sun.com/javase/6/docs/api/java/lang/Thread.html].
@OP: tutorials on threading here: [http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html]. If you're doing UI, see also: [http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html].

Similar Messages

  • My Ipad's photo program freezes while trying to add a picture to a shared stream.

    My Ipad's photo program freezes while trying to add a picture to a shared stream.
    I click into the photo click the box with the arrow and once I click "iCloud" nothing happens. I have to force quit the app to regain control. The photo does not add. I tried this with my iphone (both io ios 7) and the phone works fine.

    same discussio here https://discussions.apple.com/message/23545765#23545765

  • Labview is crashing (freezing) while running my app.

    Running LV 7.1, the app just freezes while running at random points during execution. How can I purse some help with this?
    Thanks,
    Bill

    Hi Bill,
    It does sound like this crash is specific to that machine. I did find a few logs of similar crashes in our notes but there's no record of anyone being able to reproduce the error and hence solve it.
    Do you have to use this machine for your application? Could you use the machine you know works?
    It is likely that there was a problem with the initial installation of LabVIEW. If you do need to use this machine, I would recommend doing a complete uninstall and reinstall of all NI Software. The directions for this are in the attached word document and the MSI blast software you need is at the following link:
    http://forums.ni.com/ni/board/message?board.id=250&message.id=12643&requireLogin=False
    Message Edited by SarahB on 07-25-2006 11:22 AM
    Sarah
    Applications Engineer | National Instruments | UK & Ireland
    Attachments:
    Removing NI Software.doc ‏27 KB

  • Application freezes while running and returns to normal after execution

    I deployed an application and it works fine.. but
    once running and I click on a button Execute (does the work) the application freezes up until it finishes and then return to its normal screen
    when i minimize it and maximize it while running just the border of the application pops up with nothing in the middle at the time it is running
    how can i prevent it to freeze

    how do i make it run on its own thread?
    plz helplook into the Thread class, and search the forum for how to use threads.

  • IMac freezes while running Adrium

    Hello,
    I've bought my iMac 27inch i5 at the end of 2009. Right now I experience the issue as if I'm running Adrium on my Mac the HDD goes wild and most of my programs stop running and I only get the spinning rainbow
    At the moment I turn of Adrium, everything goes smoothly for a while. I've already used the diagnostic for HDD and it says that there shouldn't be a problem.
    I will make some more test, as stressing the HDD, but I would like to know if anyone else has an idea what my problem could be.
    kind regards,
    teddyofapril

    Now I've got some update on my problem.
    Today I didn't run Adrium a single time. But while running iWeb'09 I got the same problem. I've started to monitor my HDD via iStat Menubar. The activity bar shows, that my HDD stops working and won't be read or written. After a few seconds 10 to 60 the HDD shows activity again and I can work for some time.
    Programs like Safari, Preview or Skype won't cause this problem.
    Anyone an idea?

  • Computer freezes while running Endeca Tools Service

    Hello,
    We are  facing a problem while running  Endeca Tools Service  with  Experience Manager (v3.1.2 ) on Windows 7.
    My computer freezes recurrently while the service is running. The same issue is happening to all of my colleagues who have installed the products.
    Any help with this is much much appreciated.
    Thanks.
    Edem

    For your question, you probably want the Endeca Experience Management forum (Endeca Experience Management).
    Endeca Information Discovery is a different product.

  • Entire computer freeze while running Safari in OS X Mavericks

    I honestly can't recall the last time I've had a full "system freeze" on this or my two previous MacBook Pro laptops.  But now it's happened twice in the past couple weeks, both times while running Safari and under OS X 10.9.2.  This is the sort of freeze where the only thing I could get to function was the trackpad or bluetooth mouse.  I could move the mouse around but couldn't click on anything.  Nor could I request a Force Quit as none of the pulldowns worked, nor would <option><command> <esc> bring up any menu.  I closed the lid but the computer wouldn't even go to sleep.  My last resort was to hold down the power key until the machine shut down which worked.  I restarted and it came up ok.  I am about to go stare at the system log but haven't done so yet. 
    Might this be a Mavericks issue??  I am running the latest 10.9.2 and I've been running that for both of these recent events.  Anyone seeing this???  Again both times it happened while Safari was up and running so I suppose it could be a Safari issue but I am most often on Safari anyway so it's a bit premature to blame Safari.
    Any thoughts???
    thanks... bob..

    Bob,
    I've had Mavericks on my MacBook Pro, a 2009 MacBook and an iMac since the day it was released and have installed updates up to and including 10.9.2 on the dates each update was released.  Safari is my primary browser and I use it a lot.  I have not experienced such a problem on any of the 3 computers. I have been very pleased with the performance of all 3 machines.
    Since the problem is so random on your system, it will probably be difficult to diagnose.  If you have not done so, possible a clean install from the Recovery Partition will fix the problem.
    Joe

  • Report "freeze" - while running through Appplication

    Hi folks,
    we have a report that runs fine through report builder and while running it through application except the one institute.
    In that institute, where data amount is even not as large as in testing database (or in any other institute), report freeze after while. When I run that report in this database through report builder then it's quick and without any problem - so I think it's not database problem, but could be some setting on report's server.
    We tried to extend cache size from original value 50. After increasing cache size in config file to 600 (in .../reports/conf folder rep_rerver.conf file <property name="cacheSize" value="600"/> ) report runs fine (there were no change in report on in testing data amount during all testing process) . Normal value that we have in other institutions (config files for other databases is 50 - where this amount is enough)
    We don't want lo leave this value on 600, but at the moment we don't know what other parameters can have something to do with it.
    Any ideas?
    Thanks,
    Tomas

    Hi Sudhir,
    Peoplesoft is an OEM Partner of ours and they support their product. We don't have it here so we can't help you.
    Please contact PS for support and mark this post as answered.
    Don

  • Error while running executable on Monta Vista

    While running cross compiled executable on Monta Vista Linux (cross compiled on Red Hat Linux). received following error message.
    unable to initialize mutex: Function not implemented
    PANIC: Function not implemented
    unable to join the environment
    Error opening database environment: ./data
    DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
    Could some explain why this is happening.
    Thanks,
    Hemanth

    Hi Hemanth,
    Generally, this happens because the Berkeley DB library build was specifically configured to use POSIX mutexes, and POSIX mutexes aren't available on this system, or the library was configured on a different system where POSIX mutexes were available, and then the library was physically moved to a system where POSIX mutexes were not available.
    For more info: http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html#12
    Bogdan Coman

  • IPhone freezing while running. Help??

    Hi, my iPhone 4 keeps freezing when I use it while running. It only happens during/after running, and the music will still play but the touch does not work. I've been restarting it each time, but sometimes I have to restart it a couple times for it to work. How can I fix this?
    Thank you!

    Hi, I did the restart one more time to do everything in order, and now it won't start back up, I just get black screen. It's been about 1 1/2 hours now, it there a restart the restart?

  • My iphone stalls and freezes while running certain programs

    i just bought my iphone four days ago, it keeps locking up when i press the mail button or the weather button. then the whole screen goes to black. it has also done it once on the text messanging screen. is there something wrong with the phone, should i take it back. and also the edge of the chrome trim around the screen is off centered and has a sharp edge on it where you would grab it with in your palm

    First sync your phone to your computer so you data is safe. Then you might try the Restore option on ITunes. If this doesn't fix the problem I think I would take it back to the Apple Store for a replacement if it were mine.
    Hope this helps.

  • Syntax error in program SAPLRRK0 - while running query in Bex/Portal

    Hi all,
    we just transported all the objects from dev to QA and data is loaded and everything went good. We are SPS9 and front end patch 903
    Now I am trying to run queries on Bex analyzer and portal and I am getting this error.
    "Syntax error in program SAPLRRK0."
    Also on portal I am getting these extra messages
    Error while executing function module: BICS_PROV_SUBMIT_VARIABLES
    Error while executing function module: BICS_PROV_OPEN
    I am researching but any input is appreciated.
    Thanks,
    Kiran

    Thanks Prakash,
    I understand the pre-requisite notes issue but when we are moving like 50 notes from BW Dev to BW QA i am not sure how it works. I overheard the basis guy saying he is going to appy notes as per time stamp they were applied in BW Dev system. I will check on that though.
    I have applied notes 969330, 969772, 977912,978359, 981814, 987135 in last 2 weeks. (which probaly are some how related to the issue). We have also applied some BI-Java notes in Portal Dev which are not transported to Portal QA.
    Thanks,
    Kiran

  • PC freeze while running RAM preview (After Effects CS6)

    Hi everyone!
    Recently my PC froze while doing RAM preview of full-hd 30 fps timelapse (photos in RAW), which was about 25 seconds long. I haven't had any issues to date and i find it somewhat strange since i haven't been messing with settings lately.
    It has frozen like twice in an hour of work, so i'm getting a little bit frustrated :/
    System Specs:
    CPU: i5-4670k @4.4 Ghz
    RAM: 8 GB 1600 Mhz (Kingson HyperX Genesis)
    Mobo: Gigabyte Sniper G1.Sniper B5
    GPU: Gigabyte Geforce GTX 770 4gb (running at stock speed)
    Main drive: OCZ Vertex 4 SSD 128 GB (i have all my adobe programs installed here)
    Storage Drive: WD Black 1TB
    Power supply: OCZ 750 W
    AE version is 11.0.4.2
    The problem occurs typicaly when the RAM is at +90% and cpu is running at 80-100%.
    I've tried turning 'Render Multiple Frames Simultaneously" on and off, but it didnt do nothing.

    CPU on full load is under 75 degrees, so it is not the cooling issue. I've had some BSODs while building this system regarding RAM, but when i was testing the sticks and switching them on mobo, everything was working fine since then, so i doubt it. The system does not freeze in any other program that is CPU-intensive (tortured it for like 2 hours using y-cruncher, so i think it is a stable OC) nor GPU-intensive.

  • Error while running executable file through java in WinNT

    I would like to run an executable file with Java.
    - If I try with notepad or paint, i.e. Windows Applications,
      I have no problem.
    - I also can run Non-Windows-Own Applications, except one.
      I get an error message, if I want to run this program through Java.
    I have tried following commands to run an executable file.
    Runtime.getRuntime().exec("cmd.exe /c "+command);
    Runtime.getRuntime().exec("cmd.exe /c start "+command);
    Runtime.getRuntime().exec("cmd.exe /c start /wait "+command);
    Runtime.getRuntime().exec("cmd.exe /k start "+command);
    command : the path to the executable file
    I can run the application directly, if I click the icon on desktop,
    but not through Java.
    here is the error message I get
    screenshot : http://www.aykut.de/error_message.jpg
    Text : "Security Check failure"
            The Logon System has been tampered with.
            The Administrator will need to re-install.
    my Idea :
    The application is "old".
    I think it was written for Win 3.1.
    Therefore I don't know if there is any other
    possibilty to run a "DOS Exe File" through Java.

    I have just figured out how it works,
    if somebody else here in forum have this problem,
    here is the solution :
    String path = "F:\...\...\Application.exe";
    String envDir = path.substring(0, path.lastIndexOf("\\"));
    String[] command = {"cmd.exe", "/c", "start", "/wait", "/D"+envDir, path};
    Process process = Runtime.getRuntime().exec(command);
    "start /Dpath" => path: environment directory F:\...\...\
    "start /wait" => wait until Application.exe terminates
    if you use Win95 or Win98 use command.com instead of cmd.exe
    Aykut

  • Bridge Freezes While Running Firefox

    Has any one else experienced the same problem? Bridge CS3 will freeze up if Firefox 3.0.15 is running at the same time. It seems to me that Firefox conflicts significantly with Adobe CS3 such as Bridge and Photoshop. If I force quit Firefox, Bridge and photoshop will un-freeze. I have expereiced this with Bridge CS4 and Firefox once as well. Is there a solution to this problem? Thanks so much in advance.
    PS. I am using OS 10.5.8

    Not aware of problems with Firefox, at least, this is the first time I hear
    of it.
    But I wonder why you are using Bridge CS3 when you have Bridge CS4. If you
    for some reason would like to open the images in CS3 you can set this to the
    preferences for Bridge. Bridge CS4 is far better then CS3
    And also the question, why do you use Firefox 3.0.15 while the current
    version is at 3.5.5 ?
    I'm not saying you need to update right from the moment it is available but
    CS3 is several years old and also Firefox is 5 upgrades further in the list
    Has any one else experienced the same problem? Bridge CS3 will freeze up if
    Firefox 3.0.15 is running at the same time. It seems to me that Firefox
    conflicts significantly with Adobe CS3 such as Bridge and Photoshop. If I
    force quit Firefox, Bridge and photoshop will un-freeze. I have expereiced
    this with Bridge CS4 and Firefox once as well. Is there a solution to this
    problem? Thanks so much in advance.

Maybe you are looking for