How do I detect whether 32-bit Java is installed on x64 Windows, only looking at the filesystem and registry?

前端 未结 6 1700
执念已碎
执念已碎 2020-12-15 04:58

I need to determine whether a particular system has 32-bit Java installed. I\'m doing a remote query that only gives me access to the filesystem and registry, so I cannot a

6条回答
  •  青春惊慌失措
    2020-12-15 05:45

    Do you have access to the command prompt ?

    Method 1 : Command Prompt

    The specifics of the Java installed on the system can be determined by executing the following command java -version

    Method 2 : Folder Structure

    In case you do not have access to command prompt then determining the folder where Java.

    32 Bit : C:\Program Files (x86)\Java\jdk1.6.0_30

    64 Bit : C:\Program Files\Java\jdk1.6.0_25

    However during the installation it is possible that the user might change the installation folder.

    Method 3 : Registry

    You can also see the version installed in registry editor.

    1. Go to registry editor

    2. Edit -> Find

    3. Search for Java. You will get the registry entries for Java.

    4. In the entry with name : DisplayName & DisplayVersion, the installed java version is displayed

提交回复
热议问题