Run Microsoft Fix It tool from the cmd line?

I have a rampant issue across the network I manage where Java installations have been corrupted. The only way that I can seem to remove the corrupted installation is to run the Microsoft
Fix It tool.
Since it's somewhat impractical to do this manually for 200+ workstations, is there a way do remove Java 7 update 9, 7 update 10, and 7 update 11 from the command line using the fix it tool?

The likely problem is that your path is targeting the wrong version of java.
Try the following first (I'm assuming a Windows installation):
Navigate to your %PROGRAMFILES%\Java folder
You may see multiple installations of Java - look for the most recent update (assuming the install had no errors)
Launch a command prompt within your %PROGRAMFILES%\Java folder and then change to the relevant java version and retry your commands from the bin folder using the full path to your java file(s). If it works then we have found the culprit.
You now need to edit your environment variables to point to the correct path.
Go to your environmental variables, and edit the PATH (CLASSPATH if necessary), changing
On 32 bit Windows
"C:\Program Files\Java\jdkINCORRECTJAVAVERSION\bin\" to
" C:\Program Files\Java\CORRECTJAVAVERSION\bin\"
On 64 bit Windows
"C:\Program Files (x86)\Java\jdkINCORRECTJAVAVERSION\bin\" to
"C:\Program Files (x86)\Java\CORRECTJAVAVERSION\bin\"
love is rock!!!
That's a different issue entirely.
The problem is that during an upgrade of Java, the installation of java appears to get corrupted on about 1/3 of of all workstations. After that, Java doesn't work, the control panel icon throws an error if you try using it, and installation/upgrades/uninstallations
are impossible without using the Fix It tool.

Similar Messages

  • How to set JRE 1.5.0_07 as default Java from the cmd line in Windows

    Hi All,
    We are currently in the process of upgrading our company to IE8. As MS JVM is incompatible we need to remove it.
    However, once we have done this JRE 1.5.0_07 is not the default version of Java any more for IE8.
    My question is - Is there a command line switch to set set JRE 1.5.0_07 as default Java from the cmd line in Windows. ie the setting in Java Control panel where you would tick Internet Explorer?
    Thanks in advance!

    This is to confirm a similar issue. Here is the scenario:
    We are currently using IE 6 and looking forward to upgrade to IE 8. Our current Java version is: J2RE 1.5.0_16.
    When updating from IE 6 to IE 8 with J2RE 1.5.0_16 on a test workstation, we get the following error from the Java testing website (http://www.java.com/en/download/help/testvm.xml): "load: class testvm2/Main.class not found."
    Workaround :
    -> Change Java JRE Network Settings in Control Panel to "User proxy server : xxx.xxx.xxx.xxx:xx"
    We are using an autoconfig.pac file and it seems IE8 can't parse the settings to JRE to go through the proxy.
    Please advise if you have a fix for the autoconfig.pac file.

  • Run procedure in Application Server from the command line

    Hi
    I created a procedure (VARKPI and placed in C:\Program Files\SAP BusinessObjects\Strategy Management\ApplicationServer\home) to call another procedure (VAR_CRE, this is created in the model). Nothing is happening and no error message also.
    This is the code of my VARKPI procedure which i placed in home directory.
    TRACE both 'batchload1.txt'
    SUP KILL CONN TO CPM
    USE CPM EXC
    job VAR_CRE
    trace both off
    exit clear
    My VAR_CRE in CPM model contain very simple queries to create measures.
    Then i went to Run->CMD and to the directory ApllicationServer.Used the below command to run the job
    PASAdmin.exe -j varkpi -u admin -p <pwd>
    I only see that wkadmin file is shown in the Home directory whenever i run the procedure but the measures are not created in the CPM model. What could have been wrong?
    Please suggest.
    Thanks
    Praveen

    Hi Praveen,
    The other thing that you will likely need to do is specify the model that you want the procedure to be executed from unless you want to run it from the default model specified for the user in question.  For example, if you run the job as ADMIN, then that will try and execute the procedure from JUICE by default.  If you want to change this, you need to do something like:
    PASAdmin.exe -u admin -j test;PROCLIB
    or
    PASAdmin.exe -u admin -j test;&USEDATABASE
    which will execute the procedure from your use database.
    However, unless you're making sure you use RETAIN keywords when switching between models, what usually makes much more sense as it avoids issues with model locking which can occur if you're executing the procudure from a model, is to make sure your job is run from an external file.  For example:
    PASAdmin.exe -u admin -j test;ext
    or
    PASAdmin.exe -u admin -j 'test.pro';ext
    Hope this helps,
    Robert

  • How do I run a 10g rep file from the command line, send output to previewer

    Hi Everyone,
    We are migrating from Reports 2.5 to 10g.
    We are creating a batch file to run one of our reports that is in the .rep file format. Can you tell us what we need to put in the batch file to run the report as a paper report and have the reports runtime prompt the user for the login and show the report in the previewer just like in Reports 2.5?
    Thanks.
    Emad

    They should take a look at the "Oracle Application Server - Reports Services - Publishing Reports to the Web" from Application Server Doumentation downloadable from Reports Homepage http://otn.oracle.com/products/reports
    Martin

  • Dot source/calling a function with switch from the cmd line

    Hi
    This is driving me crazy and I know its something really obvious.
    If I have an example script like so, called myexample.ps1
    [CmdletBinding()]
    param
    [Parameter(Mandatory=$false, HelpMessage="My Switch")]
    [switch] $Myswitch,
    [Parameter(Mandatory=$false, HelpMessage="Email Address")]
    [string] $email
    Function Main
    [CmdletBinding()]
    param
    [switch] $Myswitch,
    [string] $email
    if ($Myswitch)
    Write-Host "Switch Enabled"
    Write-Host "Email is $email"
    else
    Write-Host "Switch Disabled"
    Write-Host "Email is $email"
    Main -email $email #This is the line that I think is at fault
    I have two issues
    1) How do I correctly write the code so that the script can be called with either or both parameters. The switch ($Myswitch) is the one that is really causing me issues.
    2) Is invoking it the easiest method/best/most common method of calling it via a batch file
    Here's my understanding
    a) I could dot source it (. .\myexample.ps1) to load the functions into the current session, then call the function
    Main -email hello.com -Myswitch
    or
    Main -email hello.com
    b) or I could Invoke it, which I think is my preference as my final goal here is for it to be called via a batch file in a scheduled task
    & 'C:\Users\myusername\Desktop\MyExample.ps1' -email hello -myswitch
    or
    & 'C:\Users\myusername\Desktop\MyExample.ps1' -email hello
    Any push in the right direction will be appreciated :)

    Why the function?  Just call the file.  We don't "Invoke" scripts. Just call the script..
    # MyExample.ps1
    [CmdletBinding()]
    param(
    [Parameter(Mandatory=$false, HelpMessage="My Switch")]
    [switch] $Myswitch,
    [Parameter(Mandatory=$false, HelpMessage="Email Address")]
    [string] $email
    if ($Myswitch){
    Write-Host "Switch Enabled"
    Write-Host "Email is $email"
    }else{
    Write-Host "Switch Disabled"
    Write-Host "Email is $email"
    Now jsut call it like a normal script:
    .\MyExample.ps1 -email someemail -MySwitch
    It is as simple as that.
    If it has to be a function as in a library then you must either dot source or create a module.
    ¯\_(ツ)_/¯

  • Running powewrpc programs from the command line

    I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
    cannot execute binary file
    I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
    How do I get the application to execute? (it runs fine from the desktop).

    I am sitting at a Sun Solaris machine (it runs X11R6
    and Matif). I want to run Quicken, which is on the
    mac mini. I log into the mac with ssh -X. I find the
    Quicken program, but the permissions are set to 644
    (read, but not execute). If I change the permissions
    and try to run the program I get teh error message
    "cannot execute binary file".
    The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
    Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
    I have no idea what VNC is. If this is how I can do
    this, then please provide me a link to it.
    VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones).

  • What command can be run from the cmd to inquire about the language layout that is used right now?

    I have windows 7 32bit platform. Is there any command that can be run from the command line just to inquire about the language bar that is currently in use? Suppose I have English keyboard on my machine but I am switching between 3 languages when I write
    my documents (e.g. English, German, Spanish). I want to know if there is any way to tell what language layout that is in current use as seen in the language bar. This question is not about how to change language layout from the command line -- just to know
    what layout. For example, the command can return some sort of string to indicate which layout is currently in use: "english", "german", "spanish", and so on.
    My ultimate goal from this question is to pass this output into an external editor that will hopefully change font based on the input language? Any help to achieve this goal will be much appreciated.
    Or put differently, what is the best way to tell an external editor like Emacs about the current language layout that is in current use?

    For the current input language you can try using
    reg query "HKCU\Keyboard Layout\Preload" /v 1
    The return value includes an eight digit hex value. The first four digits indicate either default layout for the language (all zeros) or a variation (non-zero). The last four digits are the locale id - see:
    http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx
    From this table, you can see in the example above my input language is English - Australia. 
    For the keyboard layout you could try
    WMIC Path Win32_Keyboard Get Layout
    0409 is an English - US keyboard.
    For a few other ideas/methods try reading
    http://p0w3rsh3ll.wordpress.com/2013/06/07/about-keyboard-layouts/

  • Can't use any tools from the toolbar

    I'm running  InDesign CS6 ver. 8.0.1 on a Windows 7 64-bit pc.
    InDesign has been running perfectly for about two years on this pc until about a month ago when I suddenly couldn't use the tools from the toolbar any longer.
    I have searched for a solution and found http://helpx.adobe.com/indesign/kb/indesign-tools-panels-dont-respond.html.
    I have followed the instructions mentioned in the KB-article but it didn't change anything for me and certainly didn't solve the problem.
    Any help or suggestions will be highly appreciated!

    The KB-article recommends using font size = 100% and avoid Aero themes. I did use the recommended font setting already and I changed the theme to Windows 7 Basic. I turn off my computer every night and I have tried to use the toolbar several times during the last month. Without any luck :-(

  • Is it possible to run Acrobat3D from the command line?

    I'd like to know if it is possible to run Arobat3D from the command line in batch mode. I'm interested in knowing if this is possible in either a windows or unix environment.
    My objective is to convert CAD data e.g. CATIA V5 or DXF etc to PDF, in batch mode without using the Acrobat3D interface itself.
    I know that it's possible to run a batch process from within Acrobat3D itself, therefore one solution may be to invoke those batch processes from the command line.
    I've looked through the other listings on this forum and seen this question asked previously, but I've not seen any responses that suggest this is even a feasible concept.

    As of now, it's not possible in the cmd-mode to just remain connected and not stream.
    But the reason you want to do that is because of the long start-up time. That 20 sec time can be divided into:
    1. launch time
    2. time to start encoding (after pressing start button) -> cannot be reduced even if 'connected only' feature is available in cmd-line
    Below are tips you can use to reduce this 20 sec of time:
    1. Lesser the no. of devices connected to the system, shorter is the launch time. Disable the devices which are not to be used in the session.
    2. Try using device indexes (0, 1, 2, etc) instead of device names in the profile. Indexes might change after you disable some of the devices.
    3. Use the profile with correct settings, to avoid any validation errors.
    4. Higher the video size, higher is the overall time. Small sizes take lesser time to start.
    Let me know if you see any improvement in the startup time.

  • Jar file runs from the command line, but not when I double click it

    Hello, I'm running windows xp. I've created an executable jar file and it runs fine from the command line when I type;
    java -jar wizard.jar
    but, when I double click it . . . nothing.
    Any ideas?

    nothing ? that's weird, windows XP should prompt you to select the program you want to use in order to open Jar files (and give you this silly piece of advice to search the web for the appropriate program)
    you might want to check what program (if any) got associated with .jar extensions :
    in Windows Explorer : Tools => Folder Options => File Types
    hth

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

  • Help required - running a Java program from the command line

    Hi,
    I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
    When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
    Both the application jar file and the external jar file are in my root directory (C:\).
    My command line call is as follows:
    java -cp c:MyExternalLib.jar -jar MyApp.jar
    Any help greatly appreciated.
    Thanks,
    Walter

    hi,
    set classpath=%classpath%;c:\myjar.jar;
    here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
    java mypgm
    this will solve ur problem
    regards,
    Ganesh

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • Run javascript (not in a jsx file) from the command line extendscript

    Hi all,
    I was wondering if anyone knew how to run javascript from the command line in Extendscript (meaning Extendscript would be the target application). I know about the -run command line flag in which allows you to run a .jsx script from the command line but what I'm looking for similar syntax to run a script directly without needing to put it in a file. For example I have tried (obviously unsuccessfully):
    C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe -run "alert('Hello World');"
    Thanks!

    You might be looking for something like this: javascript - Is it possible to execute JSX scripts from outside ExtendScript? - Stack Overflow
    Although that one is about executing JSX files, the solutions given (Applescript as well as COM/VBScript) can be adapted to simply run a javascript code snippet rather than JSX file because the solutions simply call the Adobe app's Applescript/COM API to "execute javascript" (actually execute ExtendScript technically), and in the solution, they using includes to pull in the JSX file. You'd simply replace the include with actual javascript code snippet inserted in.
    Though this would then require you to run a VBScript, Applescript, or other script (that calls the COM/Applescript API) rather than the ESTK command line option.

  • My pdf reezes when I click on COMMENT. I am trying to get at the tools to edit a pdf. If I use the tools from the toolbar, there is no issue, but once I click COMMENT, the document freezes and I have to open Task Manager to crash it. This started in the l

    Sorry, I am new to the type of problem-solution process and I do not know how to edit my first statement. My true statement is below:
    My pdf freezes when I click on COMMENT. I am trying to get at the tools to edit a pdf. If I use the tools from the toolbar, there is no issue, but once I click COMMENT, the document freezes and I have to open Task Manager to crash it. This started in the last seven days (3.31.15).

    I answered your questions below, BUT while I was searching for properties, I found the REPAIR ACROBAT INSTALLATION feature, did the repair and (Voila!) the issue was resolved!
    Thanks for making me search for information.
    Karen
    I am using Acrobat XI Pro, version 11.0.10.32.
    I did not create the file I was working in during the freezes, so I tried a PDF that I created with Adobe and it also freezes when I click on COMMENT. I did discover that the COMMENTS plug-in is loaded. (see image
    I have used COMMENT for years without this issue occurring. It started in the last 2 weeks.
    I could not find Properties under the file menu, but found a security setting in Preferences under the Edit menu. It did not have a way to allow/disallow COMMENT.

Maybe you are looking for