path - how to use software java 32 bit in windows 7 64 bit using jdk 32bit and jre 32bit?
2014-05
I have a software(LongmanIBT) which has jre 32 bit
I don't know if I need to use jdk 32 bit
too?
The software is running now but too slow I went to Control Panel to set the environmental variables
the PATH
variable is C:\Longman iBT Prep 2.0\jre1.3.0\bin
so it should be ok
for my JDK as I looked here
I hadn't JAVA_HOME in my environment variables so I made new one by clicking the button new but with echoing in command line it didn't show me the address which I defined manually,so after that I deleted my JAVA_HOME
which I created in environmental variables and start over this time by using command line
I tried to set HOME_JAVA
for my JDK 32 bit
install
in commandline :
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_21
when I echo the result to know if the home has been set:
echo %JAVA_HOME%
it just againg showed me the %JAVA_HOME%
but for the echo %PATH%
I can see the address
also I tried to change the PATH
to my another jre 32
bit bin which is newer but still it has same problem
also in commandline
javac -version
it is not recognized
I don't know what I am doing wrong.what should I do now?
Oracle states that the Java SE installer is built using MSI, but the help page, rather unhelpfully doesn't list uninstall options.
I need to do a command line uninstall, and I can't figure out or find relevant the options for 1.6.21
I've tried wrapping the installer .exe in msiexec using msiexec /q /x <jre>.exe
, but this just reports that the installation package could not be opened.
Running the installer .exe with the /s /x
option just hangs.
Edited to add:
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160021} /q
=> "This action is only valid for products that are urrently installed"
Anyone got the right command line?
You can find the correct product code to pass to msiexec /x
by opening in the registry (regedit
). Open the key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Select the Uninstall key and "Find" from the "Edit" menu. Search for "Java." This should show which subkey the Java is located under. One of the keys is "UninstallString." Use this command to uninstall Java. Note however, this will only work on other machines if the exact same version of Java is installed.
There are 2 places where you might find the product code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\4EA42A62D9304AC4784BF238120662FF\InstallProperties
or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
You should be able to find the uninstall string from the key UninstallString
; something like: MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216026FF}
FYI if you are on Windows Server 2012 Core and trying to find the uninstall string for Java 7, go to following place in the registry to find the uninstall string.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\