DOS Commands Used in Java Pgm, but command window should NOT be visible!

Need a solution for the following.
Problem: In a Java program, DOS Commands are used.
Hence while executing it, the command window is visible for few seconds and later it is hided i.e once the processing of that DOS Command is finished.
Solution Required: The Command Window should not be visible. The DOS Commands should be performed in the background with out making the command window visible.

Problem:
I am trying to run a executable file through java . But a command window always pops up. I want the command window not to pop up while the code is executed. Alternatively the rt.exec method should run in the background till the process is complete.
I am using the following code in Java Swing application , where in when a user clicks a button the following method is invoked , which is turns invokes a windows a rasdial.exe file .Ex: rasdial MyConnection;
Can someone help me on this. The below is a snippet of my code .
public void callSerialOrInfraExe(String exeName) {
executableFile = exeName;
Runtime rt = null;
Process process = null;
boolean checkCon = false;
try {
rt = Runtime.getRuntime();
     process = rt.exec("rasdial " + executableFile);
process.waitFor();
checkCon = checkConEstablish();
if (checkCon) {
lblMsg.setVisible(true);
cmdSubmit.setText("Done");
cmdSubmit.setMnemonic('D');
rdbSerialPort.setVisible(false);
rdbInfraredPort.setVisible(false);
jLabel1.setText(msgStr.toString());

Similar Messages

  • How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?

    How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?
    The system I'm have is a Mac-mini that had SL on it and no SuperDrive.  I have also call Apple Support and they have really have not been to much help over 1st did my up grade to Lion and Installed the Lion Server.... it lost my SSL that I paid for and kill almost on of my server setting, plus kill all my web servers (using apache vhosts), and not to say the LDAP will even let remote users login to your laptops.
    PS: There is no way that I'm going to buy a Install USB from Apple... They have over billed me over $300.00 because the Apps Store still has bugs (Glad I did not write that App/Service)
    If there is anyone that can give in the information to create a USB install stick, I would be very thinkful.

    Here you are bro, courtesy of "softpedia.com"....brilliant site!!!
    If you ever had problems with your Mac OS X installation you know that the first thing you should do is to check the startup volume using Disk Utility.
    After the check has ended and, if the errors exceed a certain level of seriousness, the Disk Utility application will require you to restart your Mac and use its Mac OS X Install disc counterpart.
    Other users may have to reinstall OS X altogether, but will find, or already know, that their SuperDrive (a CD/DVD reader and write combo drive) is not functioning properly and it will not be able to read the Install disc.
    Although this might happen to Mac OS X Leopard users due to faultyhardware, the vast majority of problematic SuperDrives will be encountered inside Snow Leopard running Macs.
    This is due to the updated SuperDrive firmware included in either the Install disc or the software updates one has to install to reach the latest version of OS X, namely 10.6.6.
    This can be fixed by flashing the SuperDrive’s stock firmware using free command line tools that one can find for free online (I will write about this process also, but at a later time because this article only focuses on allowing you to create your own alternative USB boot disc).
    If you are reading this last bit of information with skepticism, than you should know that it happened to me too. Despite all my tries to make it work properly, the SuperDrive kept on munching any inserted DVDs and just popped them out in about twenty seconds.
    The workaround to this issue was to create my own Leopard bootable USB memory stick. I am not suggesting a Snow Leopard bootable stick mainly because there are lots of users that have decided to buy the cheaper, Upgrade version, which I have not tested and, therefore, I’m not sure if it will work properly once written to a USB disk.
    And now, here are the exact steps you should follow in order to obtain a fully bootable Leopard (or Lion) Install disc.
    Step 1 (If you already have the Leopard install disc DMG file you can skip to Step 2)
    Launch Disk Utility (you can find it inside /Applications/Utilities). Here select the Leopard Install disc in the list of drives on the left and click on the New Image menu entry at the top of the window. A save message will appear where you will have to select the Desktop as a destination.
    Step 2
    After Disk Utility has finished creating the Leopard DMG, insert your USB stick and erase all data and reformat the disk. To do this select the USB in the list of drives on the left and, after clicking on the Erase tab on the right side of the window, choose the Mac OS Extended (Journaled) format and click the Erase button beneath.
    Step 3
    After the USB has been reformatted, download the SuperDuper app from HERE and launch it. Once SuperDuper starts, you will only have to select the DMG in the Copy drop-down menu, your USB memory stick on the right and hit the “Copy Now” button.
    One can also use Disk Utility for this task but creating a bootable USB stick failed 2 out 4 times when copying the DMG to the stick (with the exact same settings each time). Creating the bootable stick using SuperDuper proved to be the perfect way to do it because it worked each of the 4 times I tested it.
    The steps above can also be used to create a bootable Mac OS X Lion USB by using the InstallESD.dmg image you can find inside the Lion installer (named “Install Mac OS X Lion.app”) downloaded from the Mac App Store in the /Applications folder.
    To locate the InstallESD.dmg right click the Lion installer, select the “Show Package Contents” entry, go inside the “Contents” folder, and from there into the “SharedSupport” folder. Inside this folder you can find the InstallESD.dmg you can use to create your own bootable Mac OS X Lion USB stick. To do so, go to the third step described above and use the InstallESD.dmg as the DMG to be copied to your USB disc.
    That’s it! Once the process ends you will have a fully bootable Leopard (or Lion) USB disk that you can use as an alternative to the Apple’s DVD Install disc that comes bundled with all Macs.
    To use your newly created bootable disk you will have to restart the Mac, press and hold the OPTION key until the StartupManager appears. Here, select the Mac OS X Install disk using your keyboard arrows and press return to start from the selected drive.

  • I've reinstalled OS X 10.7.5 using the Apple servers but my files were not erased, has the HD been reformatted and 10.7.5 reinstalled?

    I've reinstalled OS X 10.7.5 using the Apple servers but my files were not erased, has the HD been reformatted and 10.7.5 reinstalled?

    Reinstalling OS X does not erase your files.
    Compare
    OS X Lion: Reinstall Mac OS X
    and
    OS X Lion: Erase and reinstall Mac OS X - Apple Support

  • TS4036 my ipad wifi cellular 16 GB 4G switched off inbetween and is not switching on at all. I have tried to restart by using sleep/wake button, but red slider does not appear. I have recharged battery, still no response. what should i do?

    My iPad Wi-Fi cellular 16 GB 4G switched off suddenly, even when the battery was 40% available. It is not switching on again, i have tried restarting by using sleep/wake button, but red slider does not appear. I kept it off like it was overnight, in the morning agin recharged it, but still it is not switching on. it is not responding, except when i connect the charger, it gives a blink noise that recharge has started. I removed the SIM and tried restart it but no response, What should i do to restart it please?

    Seems to be working again, I haven't done anything though. And the "wifi" led on my laptop is off, which should mean that the interface is down.
    This is driving me crazy I don't understand how the all thing works, if anyone has any tips that would be very nice.
    Thanks!

  • Hi, How I can duplicate website? I have not any possibility to do it on the right button of mouse. I used to have it, but now I can not find it. can you help me please. Kind regards kate ( email: ukaska@interia.pl)

    Hi, How I can duplicate website? I have not any possibility to do it on the right button of mouse. I used to have it, but now I can not find it. can you help me please. Kind regards kate ( email: [email protected])

    What do you mean with duplicate?
    Where do you want to duplicate a website?
    Do you want to open the same site in more than one tab?<br />
    Do you want to create multiple bookmarks to the site?

  • JAVA ISN'T WORKING. I've tried software update and also reinstalling java. But it's still not working. How can I fix it? OS X 10.5.8

    I've tried software update and also reinstalling java. But it's still not working. How can I fix it? OS X 10.5.8

    Bad juju not having a bootable backup that you can revert back to when you run into these kinds of issues. Get a bootable, external HD, and make a bootable backup/clone before updating/upgrading and ensure that it's bootable and works like the original. See these for details:
    http://docs.info.apple.com/article.html?artnum=106941
    http://www.macmaps.com/upgradefaq.html
    http://www.macmaps.com/backup.html
    http://www.thexlab.com/faqs/installswupdates.html
    http://www.thexlab.com/faqs/backuprecovery.html
    Back to your issue. Boot with the Leopard install disk, select your language, select Disk Utility from the Utilities menu, and repair the disk and permissions. Report back.

  • The external GPS is used only for 911 but the device will not op without it...this causes great inconvenience for me, having to run that cable to a window in the trwo houses I use it..ids there a way to disable the GPS if I do not care about the 911 funct

    the external GPS is used only for 911 but the device will not operate without it...this causes great inconvenience for me, having to run that cable to a window in the two houses I use it..is there a way to disable the GPS if I do not care about the 911 functionability..?  this is the only downside I have with the network extender and it renders my device useless..

    Nope, GPS is a Federal requirement for anything operating a cellular telephone signal.  You don't ever plan to call 911 until you are in an emergency.  I don't see that requirement changing any time soon.
    If you are truly inconvenienced by the VZW network extender then perhaps you should disable you calling features in these areas and swap over to WiFi only.  There are many services and apps out there that can route your phone services through internet service providers. 

  • IDoc 0000000000181226 was saved but cannot or should not be sent

    Hi,
    when i am sending idoc from ecc to pi using we19 this message shown:
    IDoc 0000000000181226 was saved but cannot or should not be sent
    in sm58  Trfc error status is
    EDISDEF: Port SAPDSD segment defn E2WRF1M002 in ID oc type DEBMAS06 CIM ty
    This scenario is working fine few days ago but from today it is not working.
    Please suggest.
    Regards
    Mohit

    Make sure that the sender partner and receiver partner values corrrespond to the logical system names you have used in your partner profile in we20. Sender Partner Name should be your R/3 logical system name, and Receiver Partner Name should be the Logical System name for which you have created an Outbound Entry in We20.The Sender port and receiver port also should be the one created in We21 for XI, and SAP+"SYSID" for R3
    after completing the we19 ,if you click on oubound , you got the error that IDoc saved but not pushed right,
    see first check partner profile is properly configured or not for outbound IDoc type,
    next check distribution model is configured or not .check port also.
    every thing configured correct, then use se38 and run the program RBDMOIND.
    Thanks,

  • IDoc was saved but cannot or should not be sent

    Hi,
    I am in we19
    While sending an outbound IDOC, I am getting the status as "IDoc was saved but cannot or should not be sent".
    Kindly help.

    hi,
    >>>While sending an outbound IDOC, I am getting the status as "IDoc was saved but cannot or should not be sent".
    there can be 2 reasons for that:
    either you didn't set We20 correctly
    or the IDoc has a wrong structure
    check out those two and it will work
    my book can always help with those:
    www.sap-press.de/katalog/buecher/titel/gp/titelID-2086?GalileoSession=50249550A39Xd..iZgI
    Regards,
    Michal Krawczyk

  • How to execute unix command from the Java program running on Windows

    Hello,
    I need to
    1. Execute a unix shell script from a Java program running on the Windows.
    2. I also need to capture the output of this shell script in my program.
    Please suggest me how to achieve this.
    Thanks in Advance.

    Hi...
    Something is missing here
    If you want to execute a shell script in windows that not posible unless you find or develop a unix shell script parser for windows.
    But if you are trying the execute a unix shell script on a remote unix computer from your java program running on a windows platform you can do that by logging on to the UNIX terminal which is running on port 23 I think.
    You can test this using telnet tool on windows
    just type on command prompt
    telnet <ip of the unix pc> <port number this case 23>
    you should get the unix terminal. If that works you can do the same through java or you can directly conect to port 23 of that pc using sockets that way your program will be platform independant

  • My daughter can use facebook using an email address but same address will not open imessage

    my daughter can use facebook using an email address but same address, any ideas ta.

    You said " when trying to create an imessage account it won't accept the same e-mail address nor will it let me create a free icloud address as it says this device is not elegible for a free icloud address. "
    Just what are you doing to create the account?

  • Firefox will not open. Process runs, but browser window will not open.

    I am unable to get the Firefox browser window to launch. The application will attempt to open, but the browser window will not appear. Task manager indicates that the process is running, it just will not launch the window. No amount of restarts or reboots will make a difference. The strange thing about this is that Firefox has never run. This is a new computer and this issue has been a problem since it was first plugged in.
    Troubleshooting steps attempted thus far:
    1) Attempted to open in safe mode - will not open
    2) Attempted to run in administrator mode- will not open
    3) Completely uninstalled application, including profile info and reinstalled
    4) Uninstalled known conflicts - Skype 4 (do not have Norton)
    5) Even though issues since new, I ran a virus scan just in case-nothing
    6) Uninstalled Chrome which I installed after originally being unsuccesful at getting FF to install (I uninstalled it before I began all of these troubleshooting steps as I have heard of conflicts)
    I am now at a loss and willing to try any other steps that you guys can suggest.
    Computer is running Windows 7 pro 64 bit. Running McAffee virus software. There are three identical computers in my office, purchased at exactly the same time with the same configuration. Mine is the only one that will not run firefox. Sadness. Please help, pleeeease...

    Win 7 with iTunes installed - I was also having problems with that.
    "netsh winsock reset" at the command prompt resolved all issues and Firefox launched normally.
    Check to see if Winsock is corrupted. May prevent FF from communicating with the web and consequently fails to launch properly - for my situation was not a firewall or antivirus block!
    http://support.microsoft.com/kb/936211#LetMeFixItMyselfAlways
    Click Start, and in Start Search, type cmd.
    Right-click the cmd entry that appears in the search results, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
    At the command prompt, type the following, and then press ENTER:
    netsh winsock reset
    Then, you should see the following message:
    Successfully reset the Winsock Catalog. You must restart the computer in order to complete the reset.
    Restart the computer.
    Note If you receive an “Access Denied” error message instead of the message that is mentioned in step 3, the command prompt was not correctly elevated. In this case, close the Command Prompt window, and repeat steps 1 through 3. Make sure that you correctly implement step 2.

  • How to use original java VM in microsoft windows applications

    I have seen few applications like of Oracles, They use Java Beans and classes in the windows applications.
    Can any one of you tell me how can i use java classes in Windows applications(through oroginal java VM only, not by microsoft Java VM).

    actually i think they use the same way i use in my applications:
    i have Microsoft Visual C++ 6.0 by which i write a windows program interface (like oracle) then create from inside it, in reflection to a button event for example, a procedure which runs "javaw.exe -cp ... MyJavaProgram.class" this java program executes in its own work space and i can terminate it from within my C++ program, but i can't get data from within it directly, i use the DBMS as a way to get data from within it.
    but i'm not tried for example to run java bean directly in my VC++ program, emaple, not run swing component inside my VC++ main window Created by Visual C++
    that is what i'm doing. i hope there is a better way to do so because i don't like it that way i do.

  • How can I get past prob using MQ Java classes on HPUX (CCSID 1051 not sup)

    I am working with MQSeries (Java classes for MQSeries MA-88) in an HP-UX environment.. I am not able to get from a queue using Java because apparently Java does not support code page 1051. Is there a way to get around this? I don't have the option of changing the default CCSID of the queue manager. I have heard something about being able to map CCSIDs using an HP-UX system call thru JNI but no details.. Any info would be appreciated.. What I am getting back from Java is "unsupported character set 1051" this is the default for HP-UX

    Hi All,
    I am facing the same problem.
    Has some one found a solution or work around for this problem.
    Please reply ASAP.
    TIA
    Anup B Darvatkar
    ([email protected])

  • Have down loaded Yosemite over Mountain Lion. Indesign CS 5 is not working and requests Java script CE6. Apple stated Java 10 , but it still does not operate although Bridge works so as Light room and Photo Elements. How do I solve this problem

    Have down loaded Yosemite over Mountain Lion. Indesign CS5 does not operate although Bridge, Light room and also Photoshop elements operate OK A sub menu from Indesign request Java SE 6, after a long play with Apple  I end up with Java 10 How can I solve this problem rapidly. Pity apple do not test there products before offering them to the public. It costs us. Many thanks Davi E-C 

    It isn't Apple's job to ensure third party software works with a new OS. But Java 6 is here:
    Java for OS X 2014-001

Maybe you are looking for

  • Error while installing OEM agent

    Hi All Below is my environment details. Oracle - 10.2.0.4.0 Linux - RHEL5 - 2.6.18-128.1.6.el5 Two node RAC environment I am following my company documents for installing OEM agent. I executed the below command agendDownload.linux_x64 -n <cluster_nam

  • Thinkcentre M93P Win 7 (64) Will Not Blank Display

    Brand new M93P will not blank the display. I have a DP-DVI Cable, Samsung monitor. I try all different settings in power manager, Win7, and can not get the display to blank after xx minutes. Ideas? Thanks Solved! Go to Solution.

  • Formula planning function in IP

    Hi, I would like to have formula planning function IP. The user is able to input percentage of growth, inflation and savings. Then the system has to calculate the percentages on previous budget and calculate the current budget. How the variant can be

  • Run time error program C an application has attempted to load the C runtime library incorrectly

    I have attempted to delete I Tunes and reinstall but this message continues to come up so I am not able to fully load I Tunes. I had I Tunes loaded previously and it worked well until I updated it this week. Any suggestions?

  • Just updated, library missing. Article question

    Hi. I just had the issue where you upgrade, and the library goes missing. I read the article for troubleshooting this, but it didn't work. I was a tad confused about dragging the library to the desktop, then finding the previous library, and supposed