2 versions of .jar, need to launch correct version

Currently, our users are using a shortcut in Windows95/NT to launch a jar file. Now they will have two versions of the jar file, version_a.jar and version_b.jar. Now there will also need to be an ini file (or properties file) that will have four lines:
Currently Running Version
Effective Date
New Version to Run
Effective Date
I need a small program that will read this .ini file, then launch the correct jar file based on what is in the .ini file. Reading and parsing the .ini file is not a problem, I'm just not sure how to approach this small program that will launch the main program.
Has anyone done anything like this?

Forgive me, this is new territory for me. While my code seems to be working fine, I'm wondering what is happening with my stream handling of the process. After the System.exit(o) call, output of the process is no longer printing to the console. Should I be directing it somewhere else?
String command =
"C:\\jdk1.3.1\\bin\\javaw.exe -jar C:\\test\\test.jar";
try{
Runtime rt = Runtime.getRuntime();
Process process = rt.exec(command);
System.out.println("Running process");
StreamHandler errorHandler = new
StreamHandler(process.getErrorStream(), "ERROR");
StreamHandler outputHandler = new
StreamHandler(process.getInputStream(), "OUTPUT");
// kick them off
errorHandler.start();
outputHandler.start();
//Exit out of this launch program
System.exit(0);

Similar Messages

  • I got a new computer and all applications were transferred to the new one. When I launch Acrobat 8 Professional, I get a warning that Acrobat cannot be launched now and that I need to launch another application e.g. Photoshop which is already launched. An

    I got a new computer and all applications were transferred from the old one. However, when I tried launching Acrobat 8 Professional, I get a message that says: "Adobe Acrobat 8 Professional cannot be opened at this time and I need to launch another application in the suite e.g.Photoshop" which is already launched. Is there some help around this?

    It appears that you have the CS. What new OS do you have. If it is Win 8.1, you may have to purchase a new version of Acrobat for that system. Folks have succeeded with AA 8.1 on Win 7, but I have not heard of any successful installs on Win 8.1. As for the issue you have with the new OS, you do have to follow the CS install process that is different than the stand-alone Acrobat (there are some posts that discuss the process if you search).

  • I need to launch an app that needs java runtime enviro 1.5. It is saying that it is not installed on my mac but I think it is.

    I need to launch an app that requires javaruntime 1.5. My mac is saying that it is not installed but when i go into utilities, it looks like it is.
    Don't know where to go from here.
    I have version 10.7.3.

    I believe that i have the latest version of Java runtime. But my app should be running on it but its not.
    Well, either you don't actually have Java, as you think you do, or the app won't run in the latest Java runtime.  Try entering the following command in the Terminal (found in /Applications/Utilities):
    java -version
    If that causes an install window to appear, you don't have Java at all.
    If it displays a version number, make a note of that version, and ask the developer of the app whether it should run in that version of Java.

  • I have sent files several times now and when the recipient clicks the link to open. it says page cannot be found.  This just started happening.  what needs to be corrected?

    In Adobe Send, I have sent files several times now and when the recipient clicks the link to open, it says page cannot be found.  This just started happening.  What needs to be corrected?

    I can think of a couple of reasons for this behavior.
    You inadvertently turned off the sharing for the files.
    The link that the user is clicking on is incomplete; perhaps it got broken across lines in an email message. Are you sending Anonymous Links or Personalized Invitations? If the former, are you certain that you copied the entire link?
    Some things to try.
    Have the user send the link back to you so that you can test it. Does it work for you?
    If you look at your Sent Files list, is the name in the Sent To column struck through (e.g., John Smith)? That would indicate that it has been unshared.
    If you could get back to me with answers, perhaps we can get to the bottom of this.

  • Item category 003 needs to be corrected

    Hi,
    While simulating vendor / customer invoice I am getting error as 'Item category 003 needs to be corrected'.
    Could anyone help me to understand why this error occurred and how to go through it?
    Thank you,

    Hi ,
    The error is sometimes experienced when you dont fill in the mandatory fields for input .
    Like the text tab , simply double click the line item which is shown as error and fill in the text tab with details .
    hope this suffices .
    Rgrds ,
    Dewang.

  • Where to find the jars needed

    Hi,
    I downloaded a sample code for search engine. I'm not able to compile the code as the import statement fails for the below jar. Please help me finding the jars needed.
    import com.sapportals.wcm.service.indexmanagement.*;
    import com.sapportals.wcm.service.indexmanagement.retrieval.search.*;
    import com.sapportals.wcm.service.indexmanagement.ISupportedOptionSet;
    import com.sapportals.wcm.service.indexmanagement.SupportedOptionSet;
    Naveen

    Hi Naveen,
        Few of the jars u can find here:
    portalapps/com.sap.km.cm.service/service/private/lib/km.appl.service.indexmanagement_core.jar
    portalapps/com.sap.km.cm.service/private/lib/km.appl.service.indexmanagement_core.jar
    portalapps/com.sap.km.cm.service/lib/km.shared.service.indexmanagement_api.jar
    You can find portalapps folder here:
    \usr\sap\<SID>\JC<System Number>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\
    Its better to use jar class finder. You can download from here:
    http://www.alphaworks.ibm.com/aw.nsf/reqs/jarclassfinder
    For info on how to use it see this blog:
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951
    Regards,
    Pooja.
    Message was edited by:
            Pooja S
    Message was edited by:
            Pooja S

  • Wish to update to 7.1.2  need to backup correct? I select settings iCloud sroage

    wish to update to 7.1.2  need to backup correct? I select settings>iCloud>storage & backup and my iCloud backup switch is gray. why?

    If you're phone was provided by your employer, or if you have added your employer's exchange email account to you phone, you employer may have pushed a security profile to your phone preventing it from backing up to iCloud.  You would have to confirm this with your employer's IT department.
    Back up to your computer instead by going connecting it to your computer, opening iTunes and going to File>Devices>Back Up and choosing Transfer Purchases if prompted.

  • Hello I was charged twice for adobe story plus, I need this problem corrected and a refund issued for one of the subscription charges, I tried chatting with Adobe and they were unable to help me. Where is email support?

    Hello I was charged twice for adobe story plus, I need this problem corrected and a refund issued for one of the subscription charges, I tried chatting with Adobe and they were unable to help me. Where is email support?

    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Help.  I Can't Get Flash Player Installed on Windows 7 32 bit.  The subinacl permissions need to be corrected.  How Do I Do This?

    Help.  I Can't Get Flash Player Installed on Windows 7 32 bit.  The subinacl permissions need to be corrected.  How Do I Do This?  The error message says I do not have sufficient permissions to install flash player.  I have full administrative permissions.

    Hi Paul,
    Instructions (including video) for resetting permissions using SubInACL are available here How do I fix Windows permission problems with Flash Player?.
    Maria

  • If we use the $495 DPS service we don't really need the cloud correct?

    If we use the $495 DPS service we don't really need the cloud, correct?

    The 495 covers a pro account which allows for subscription apps as well as single edition. If all you’re interested in is single edition then Creative Cloud is the way to go.
    Bob

  • Wrong Auc Settled and depreciation need to be corrected

    Hi,
    Issue is our end user created asset called A with 15000 in June 2008.
    Based on that 2 months depreciation was posted properly.
    After that one wrong Auc was settled to this asset with the amount of 10000. (T Code : AIAB)
    So after that based on this amount system calculated depreciation.
    Today only we got identified that error.
    Now we need to the correct the all the wrong postings.
    Please guide me the full process to rectify with T codes.
    Sateesh

    Hi,
    Steps to be followed
    1. Reverse the Capitalisation done (in AIBU) using T code AB08. give the Auc Asset number and select the capitalisation Line item.
    2. Do the capitalisation with correct asset number and asset value date.
    3. Run Depreciation in AFAB.
            If the depreciation is already posted, the system would calculated the differential amount to be  posted. But execute the AFAB for the wrong asset in the repeat mode. Adjustment amount will be reversed in the GL account
    4. IF depreciation is not run for that asset with wrong amount, then just execute AFAB for the current period.
    Initially try this in the test run mode.. so check the amount to be posted.
    Hope this helps
    Regards
    Seshadri

  • Need a lens correction for Canon zoom 8mm-15mm f4/L, it's not in the list of lens in LR

    Need a lens correction for Canon zoom 8mm-15mm f4/L, it is not in the list of lens in Ligthroom
    and how can I ad it?

    It's available with ACR 8.4RC, so I would imagine that it will be available with LR 5.4RC/5.4. Just when that will be, is not known by anybody outside of Adobe. Hopefully soon.

  • Premiere pro needs a lens correction for the GoPro cameras

    Premiere Pro needs a lens correction for the GoPro cameras

    Please add your request here:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Best,
    Peter Garaway
    Adobe
    Premiere Pro

  • TS4083 Is that behavior has changed along ios8 ? Or still you need to launch mail app to update unread emails ?

    Is that behavior has changed along ios8 ? Or still you need to launch mail app to update unread emails ?

    I've found out that this is by design.
    Email Application offer push-notification, but read action is not populated to the Cloud.
    So Mail app needed to be opened manually each time you want to refresh it status ...
    That is not a good information...
    As far as I remember, google had that work quite long ago properly (of course on iOS and inside Mail.app)

  • Jars needed for AIA deployment

    What are the key jars needed for an ant based deployment of an AIA application?

    HI dere ,
    I am trying to install 11.1.1.7 AIA on my 64 bit win -7 machine but don't know why i am again and again getting the same error and i.e "build failed".......i have tried installing and uninstalling for so many times,  even after that i am getting errors...
    BUILD FAILED
    C:\Oracle\Middleware\SOASuite11g\oracle_common\AIA_HOME\Infrastructure\Install\AID\AIAExecuteDriver.xml:223: The following error occurred while executing this line:
    C:\Oracle\Middleware\SOASuite11g\oracle_common\AIA_HOME\Infrastructure\Install\AID\AIAExecuteDriver.xml:65: The following error occurred while executing this line:
    C:\Oracle\Middleware\SOASuite11g\oracle_common\AIA_HOME\aia_instances\AIA_INST\tmp\AIDExecuteDP_temp_1421998953.xml:209: The following error occurred while executing this line:
    C:\Oracle\Middleware\SOASuite11g\oracle_common\AIA_HOME\Infrastructure\Install\AID\lib\AIDDeploymentLibraryTasks.xml:109: Java returned: 1
    please help me out
    Regards
    kabir

Maybe you are looking for