score:15
- Open [File -> Settings -> Build, Execution, Deployment -> Compiler]
- Add "--add-modules java.se.ee" to [Shared build process VM options]
score:1
score:1
In addition to the above answers.
If you are not using IntelliJ and running the program from sbt console, I found the following resolved the issue:
Adding the following to your build.sbt:
libraryDependencies += "javax.xml.bind" % "jaxb-api" % "2.3.0"
Adding the import statement to your controller:
import javax.xml._
score:6
Moving this as an answer to serve as a temporary suggestion unless there is a definite solution to it and to club together few other points.
Seems like scala is not yet complete in terms of readiness to be used with JDK-9 as visible at scala/scala-dev - Support JDK 9
On the other hand, the way of solving the dependency on the javax.xml.bind
could be currently categorized into two categories:-
Your project uses a library which in turn
requires javax.xml.bind
, in which case there is not much in your hands other than waiting for that library to move to a modular structure prior to your restructuring. However, this can then be temporarily hacked by the--add-modules javax.xml.bind
option provided as the compiler argument.Your project makes use of the
javax.xml.bind
directly. In which case the ideal solution is to move away from the module and make use of the dependency[jaxb-api:2.3.0
] and refactor code accordingly.
Source: stackoverflow.com
Related Query
- Intellij: SBT-based Scala project does not build with Java 9
- Scala project with maven in IntelliJ does not compile
- Scala Compiler not found in Intellij IDEA 11 with Play 2.0 project
- Why does sbt build fail with "MissingRequirementError: object scala.runtime in compiler mirror not found."?
- IntelliJ IDEA Hotkey for comment does not work with Scala
- Scala sbt assembly jar does not work (class implementation not found) but code works when through IntelliJ
- scala project does not work in intellij
- scala build with SBT cannot import java classes?
- Scala project does not automatically build in Eclipse
- transitive dependencies of scala project built with sbt within a different java maven project
- IntelliJ Build does not execute sbt 'compile' dependencies
- Intellij 15.0.5 issue with SBT and Scala project
- Creating SBT Project in IntelliJ Ultimate 13.1.1 with Scala plugin gives no New > Scala object for src/main/scala?
- Debug Gatling Scala Code in Intellij with Maven Java Project
- Intellij IDEA: Scala 2.10 project with Java 7, UnsupportedClassVersionError
- How to build Android project with Scala sources in IntelliJ IDEA (Community Edition)?
- sbt version and scala version. project configuration for intellij idea with sbt-idea plugin
- Generated Source with Macros in a Scala 2.13 and Mill project not found in Intellij
- how to fix "Host www.saraframework.com not found" during compiling a scala project with sbt
- How can I use scala sources from a different location in a sbt project and also make it work with IntelliJ IDEA?
- How to remove scala version from an sbt multi project with cross build on a particular project
- SbtWeb not found when building Scala project with sbt
- Class Not Found running Scala in IntelliJ SBT project
- IntelliJ 13 with SBT plugin does not recognize Scalding dependency
- Cannot build SBT project with Scala 2.12.8
- SBT project with a Java module in IntelliJ
- IntelliJ IDEA does not let me run ScalaTests from an SBT project any more
- How to create SBT project with IntelliJ Idea?
- Why does pattern matching in Scala not work with variables?
- IntelliJ IDEA 13: new Scala SBT project hasn't src directory structure generated
More Query from same tag
- Running Spark-Shell on Windows
- Extracting data out of a recursive function using tuples
- Instantiating a case class with default args via reflection
- DSL to implement business rules for REST service routing and processing
- How to run two servers(application) in play framework 2.2.1 scala language,i using ubuntu 12.04
- Scala: trying to understand Traits, 'abstract override' and stacking
- Map over CompactBuffer in an rdd
- How does Scala implement the addition operator behind the scenes?
- Scala type error - takes no type parameters, expected: one
- Filtering out keys of a map but keeping all values in scala
- Why is String not a value?
- Sbt stuck at 'Updating ProjectRef' after deleting .ivy folder
- Can an object extend abstract class in scala?
- Transform a list of object to lists of its field
- Spark union of dataframes does not give counts?
- DataFrame using UDF giving Task not serializable Exception
- FS2 Running streams in sequence
- Is Scala Either really a Monad
- toMap error in mapping a Data Set
- unable to run web-app developed using scalatra scala
- How to use Array[String] in a function expecting String* in Scala
- Building Tiles in chiesl (RocketChip)
- Is constructor use allowed with case classes?
- How to Convert Dataframe into JSON
- Command line refractoring tool for Scala
- org.elasticsearch.hadoop.rest.EsHadoopRemoteException: search_context_missing_exception: No search context found for id
- train simple neural network with deeplearning4j
- Is it possible to write a repeated-parameter function through function literal in scala ?
- Regex for parsing key value pairs with comma and [ ] in the key
- Anonymous recursive function in Scala