Hey All,

Our builds currently have JRE 1.6.0_07 and JRE 1.7.0_60 installed. One of the web applications is supposed to run with JRE 1.6.0_70.

When the app is launched, it prompts to check which version of Java do we want to use?

There are two radio buttons which read the following:

Choose the version of Java to run this application:

Radio1: Run with the latest version on your system (Recommended)  \\ This option is automatically ticked.

Radio2: Allow this application to run with the requested version (1.6.0_07).


I need this prompt to be suppressed with the second radio button selected, forcing the older version (one required by the application) to be used.

Has anyone come across it and found a work around?

Is there anyway I could do it?

I already tried the JAVA_HOME variable thing, but it doesn't seem to work.

Neither capturing the changes does the trick.

I also tried the Java Deployment toolkit work around, but got stuck in the very first step, which is running the following command.

jar -cvsf.....

It says jar is not recognized as an internal/external command....


I am no developer, just a packager trying to do some automation.

I am kind of terribly stuck here with no hint as to how to get done with this. Please help!!!

Thanks in advance!!!




4 Comments   [ + ] Show Comments


  • This is an application issue and not a Java issue, therefore you will need to address the application configuration rather than mess around with Java settings.
    If this is a web application, are you able to access the source code and change it? Fundamentally, that is what is required.
  • I can view the source by right-clicking on the web page. But I have no clue as to what changes are needed and how am I supposed to edit the source in run-time.
  • 1. First check which registry/file get affected after required post configuration on this prompt.
    2. If machine specific file/registry(C:\ or HKLM) is created then we can implement this scenario in in package it self.
    3. Else if user user specific file registry is created then can be handled using active setup.
    4. If you are unable to find post configuration changes on system, go for AutoIT exe. write required logic to handle shortcut.

    Implementation: (Use the created exe as a shortcut target)

    check if any of above scenario helps to suppress this prompt.
  • the 2nd step for the java dev bit, is to get the CMD to the correct folder and run the java or javaw.exe with the command you want...
Please log in to comment

There are no answers at this time


Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja