This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Jython doesn't work when JAVA_HOME isn't set or is set incorrectly | ||
---|---|---|---|
Product: | python | Reporter: | vincentvdl |
Component: | Build | Assignee: | Lou Dasaro <mr_lou_d> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
vincentvdl
2015-11-18 21:03:01 UTC
I think this StackOverflow question is related to this problem: http://stackoverflow.com/questions/30410385/jython-exe-2-7-0-final-release-failed-execution-on-my-windows-os Somehow my JAVA_HOME in my Environment Variables settings was not correct. In Windows 10: Start > Settings > Search in the search-bar on "System" > choose "System" in the list > Advanced system settings > Environment Variables... > In System variables list (second one), find and double-click the "JAVA_HOME" variable and ensure that directory exists. If the JAVA_HOME entry does not exist, then add it. If I understand Jim Baker's post in the mentioned StackOverlow discussion correctly, Jython does not work when the path has quotes, so double-check that the JAVA_HOME path does not have quotes (they are not necessary here, even not when using spaces in directory names) After correcting my JAVA_HOME path and restarting NB, the problem went away. This becomes a documentation task for me. Users are required to set environment variable JAVA_HOME to reference a valid location for the installed Java. I believe this needs to be a JDK, and not just a JRE - further investigation required... |