We're updating the issue view to help you get more done. 

Cargo fails to parse Java 10 version

Description

JdkUtils fails to parse the version string java version "10" that is emitted from java -version

1 2 3 4 5 Caused by: java.lang.NumberFormatException: For input string: "10 2018" at org.codehaus.cargo.container.internal.util.JdkUtils.parseMajorJavaVersion(JdkUtils.java:138) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.createJvmLauncher(AbstractInstalledLocalContainer.java:399) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.startInternal(AbstractInstalledLocalContainer.java:287) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:226)

Ref.

1 2 3 4 $ java -version java version "10" 2018-03-20 Java(TM) SE Runtime Environment 18.3 (build 10+46) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

Status

Assignee

H

Reporter

H

Components

Fix versions

Affects versions

1.6.7

Priority

Major