Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZAP 2.14.0 installer on Windows have misleading text when asking for Java Runtime Environment #8355

Closed
1 task done
eiriklid opened this issue Feb 22, 2024 · 9 comments
Closed
1 task done

Comments

@eiriklid
Copy link

Describe the bug

When trying to install on Windows I got asked if I could point to the location of Java.

As I didn't have Java installed I went to https://www.java.com/en/download/ and downloaded the latest version ( jre-8u401-windows-x64).
I found it a bit weird that ZAP asked for minimum version of 11, when the latest is version 8.

Then selecting the java.exe did not work.

Only after I came across this post https://stackoverflow.com/a/75093390/5918611 and installed the latest OpenJDK, would the installer succeed.

I'm sure that this issue is trivial for anyone who have done any development in Java, but I found it confusing. I see that similar issues have been raised before as well: #6122

Steps to reproduce the behavior

Install ZAP without Java on Windows

Expected behavior

I would expect an error message that the describes what is needed to fix the problem.

Software versions

ZAP 2.14.0

Screenshots

No response

Errors from the zap.log file

No response

Additional context

No response

Would you like to help fix this issue?

  • Yes
@eiriklid eiriklid added the bug label Feb 22, 2024
@thc202
Copy link
Member

thc202 commented Feb 22, 2024

Where's the misleading text?

@psiinon
Copy link
Member

psiinon commented Feb 22, 2024

And where did you download ZAP From?
https://www.zaproxy.org/download/ states that: "The Windows and Linux versions require Java 11 or higher to run."

@eiriklid
Copy link
Author

image
From my googling I wonder if it is actually referring to jdk, and not jre. Could that be the case?

@eiriklid
Copy link
Author

Downloaded from https://www.zaproxy.org/download/

@eiriklid
Copy link
Author

From https://www.java.com/en/download/help/whatis_java.html

What will I get when I download Java software from java.com?
The Java Runtime Environment (JRE) version 8 is what you get when you download Java software from java.com.

@thc202 thc202 removed the bug label Feb 22, 2024
@thc202
Copy link
Member

thc202 commented Feb 22, 2024

No, the JRE is more than enough to run ZAP as long as it is 11+. We do not recommend downloading from java.com, the installer should be linking to https://adoptium.net/

@eiriklid
Copy link
Author

aha, thank you! Sorry for the confusion.
I used https://adoptium.net/ for the jdk originally, but I can confirm that it also works when using the jre from https://adoptium.net/.

@thc202
Copy link
Member

thc202 commented Feb 22, 2024

Closing as this is now clarified.

@thc202 thc202 closed this as completed Feb 22, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants