OK, so first I installed Java because I did not have it at all - I am certain, I verified to make sure because I just recently did a Windows 10 OS "refresh / reinstall" and signed up for their "Insiders Program" and everything, just to make sure I always have an updated, secure system. I am (trying to be) very careful about knowing what I have on my system.
So I installed Java, verified that I have the most recent version, 8, which in Java's weird language I learned you have to interpret, 1.8 actually equals 8. Whatever. I verified in Windows powershell, `java -version` returns detailed version information verifying that I indeed have the correct version.
Then I downloaded ZAP from OWASP . org. There are no installation instructions, so I'm doing the best I can.
ZAP says it cannot find Java. "The install4j wizard could not find a Java(TM) Runtime Environment on your system. Please locate a suitable 64-bit JRE. (minimum version: 1.8)
I tried to help it by moving the ZAP install .exe into the same directory, ran it again (ran as admin).
Then I got this:
"The JVM found at C:\Path\java.exe is damaged. Please reinstall or define EXE4J_JAVA_HOME to point to an installed 64-bit JDK or JRE." Whatever the hell that means.
It wasn't until then that I noticed the log file, and read it. The ZAP installer showed me that Java has created not one, but TWO program directories: a Java directory in my Program Files (x86) directory, and *another* Java directory in a brand-new Oracle directory in my ProgramData directory. WTH, Java, really?
So, should I A) Change the environment variables to match the Java directory containing the Java.exe program, or B) should I *move* the Java.exe program into the directory path already created by ZAP in the environment variables? Or C) should I add the path of the current Java.exe to the environment variables?
What does ZAP mean when it says "No JVM found"? What exactly is it looking for? The exe? What is an installation node?
This is overwhelming.
More info: log attached.