Skip to content

java version 1.8 rejected in cygwin/windows-java due to carriage return #3367

Closed
@philwalk

Description

@philwalk

Calling dotd with windows java 1.8 in a cygwin terminal session fails with the following message:

Error: Java 8 is required, actual 1.8

When setting the value of JAVA_VERSION in file bin/common line 65, a fix is to convert '\r' to '\n':

JAVA_VERSION=$("$JAVACMD" -version 2>&1 | tr '\r' '\n' | grep ' version "' | sed 's/.version "([0-9])(.[0-9]){0,1}(.)*"/\1\2/; 1q')

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions