Scala installs Exception in thread "main" java.lang.VerifyError:Uninitialized object exists on backward branch 96

Source: Internet
Author: User

After Windows download installs the latest version of Scala (2.12.4), the terminal has the following error

C:\users\administrator>scala-version
Exception in thread "main" java.lang.VerifyError:Uninitialized object exists on backward branch 96
Exception Details:
Location:
Scala/tools/nsc/compilercommand.sstring$1 (ljava/lang/string; Lscala/collection/immutable/list;i) L
Scala/option; @153:goto
Reason:
Error exists in the bytecode
Bytecode:
0000000:2bb6 02ec 9900 07b2 016a b0bb 0154 591c
0000010:BA02 f200 00b2 00c9 b600 cd3a 044e 1904
0000020:b200 c9b6 00d1 a600 7d2b b200 d6a6 000b
0000030:b200 d63a 09a7 0077 bb00 d859 2bb6 00db
0000040:c000 2b3a 0a1c 190a b802 eeb2 00d6 b700
0000050:e83a 0519 053a 062b b600 ebc0 0050 3a07
0000060:1907 b200 d6a5 0037 bb00 d859 1907 b600
0000070:dbc0 002b 3a0a 1c19 0ab8 02ee b200 d6b7
0000080:00e8 3a08 1906 1908 b600 ef19 083a 0619
0000090:07b6 00eb c000 503a 07a7 ffc7 1905 3a09
00000a0:a700 0c2b 2d19 04b8 00f5 3a09 1909 c000
00000b0:502a b602 f613 02f8 b602 04b7 0159 B0
Stackmap Table:
Same_frame (@11)
Full_frame (@56,{object[#118],object[#80],integer,object[#333],object[#335]},{uninitialized[#11],
uninitialized[#11]})
Full_frame (@96,{object[#118],object[#80],integer,object[#333],object[#335],object[#216],object[#
216],object[#80],top,top,object[#43]},{uninitialized[#11],uninitialized[#11]})
Full_frame (@156,{object[#118],object[#80],integer,object[#333],object[#335],object[#216],object[
#216],object[#80],top,top,object[#43]},{uninitialized[#11],uninitialized[#11]})
Full_frame (@163,{object[#118],object[#80],integer,object[#333],object[#335]},{uninitialized[#11]
, uninitialized[#11]})
Full_frame (@172,{object[#118],object[#80],integer,object[#333],object[#335],top,top,top,top,obje
ct[#4]},{uninitialized[#11],uninitialized[#11]})

At Scala.tools.nsc.MainGenericRunner.process (maingenericrunner.scala:42)
At Scala.tools.nsc.maingenericrunner$.main (maingenericrunner.scala:101)
At Scala.tools.nsc.MainGenericRunner.main (Maingenericrunner.scala)

Online search, found that the JDK version of the problem, the original version is as follows

C:\users\administrator>java-version
Java Version "1.8.0"
Java (TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot (TM) 64-bit Server VM (build 25.0-b70, Mixed mode)

After upgrading the version, fix the problem (upgrade to JDK8 131 or 151)

C:\users\administrator>java-version
Java Version "1.8.0_151"
Java (TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot (TM) 64-bit Server VM (build 25.151-b12, Mixed mode)

C:\users\administrator>scala-version
Scala Code Runner version 2.12.4-Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.

Scala installs Exception in thread "main" java.lang.VerifyError:Uninitialized object exists on backward branch 96

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.