[GRADLE-1232] gradle.bat fails when JAVA_HOME has a trailing backslash Created: 24/Nov/10  Updated: 04/Jan/13  Resolved: 04/Jan/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9.2

Type: Bug
Reporter: Taufiq Hoven Assignee: Hans Dockter
Resolution: Fixed Votes: 0


gradle.bat reports an error when JAVA_HOME is set to the following:


Error reported:

ERROR: JAVA_HOME is set to an invalid directory: C:\Progra~1\Java\jdk1.6.0_21\

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Workaround is to remove the trailing backslash from JAVA_HOME.

Generated at Wed Jun 30 11:50:20 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.