线程“main”中的异常java.lang.NumberFormatException:不是版本:9 [英] Exception in thread "main" java.lang.NumberFormatException: Not a version: 9
问题描述
我正试图在日食中运行 Spark maven Scala 项目。
I am trying to run a Spark maven Scala Project in eclipse .
.scalarel =nofollow noreferrer> scala类,我收到此错误:
when i run the scala class , i get this error :
Exception in thread "main" java.lang.NumberFormatException: Not a version: 9
at scala.util.PropertiesTrait$class.parts$1(Properties.scala:184)
at scala.util.PropertiesTrait$class.isJavaAtLeast(Properties.scala:187)
at scala.util.Properties$.isJavaAtLeast(Properties.scala:17)
....
出了什么问题?
什么是版本9?
what is wrong ? what is a version 9 ?
推荐答案
Scala现在还没有开箱即用的Java 9 - 有一种方法,但你必须确定混合中的各种组件具有兼容性所需的最小版本。
Scala does not work with Java 9 out of the box just yet - there is a way, but you have to be sure that various components in your mix have minimal versions required for compatibility.
请参阅此兼容性矩阵(注意 Java , Scala 和 SBT 版本)
See this compatibility matrix (notice Java, Scala and SBT versions)
最简单的解决方法是使用 Java 8 在Eclipse中运行Spark项目。
The easiest fix is to run your Spark project in Eclipse using Java 8.
这篇关于线程“main”中的异常java.lang.NumberFormatException:不是版本:9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!