score:1
found the solution:
the project build of intellij doesn't really care about the path of jdk in env var java_home, it takes the one from project settings, so to solve this i have to:
- go to file -> project structure (command + ;)
- on the left select project settings, modules
- select the module and from module sdk drop list pick one of the compatible sdk like:
- jdk1.8.0_202 or jdk1.8.0_251, correto1.8 or adoptopenjdk 1.8, ....
- the ones that does not work with me are:
- jbr17, correto16, temurin-17, ...
score:0
in my case i had resolved this issue by installing a java version of 1.8 and set java_home to this version.
export java_home="/library/java/javavirtualmachines/jdk1.8.0_251.jdk/contents/home"
score:2
this is a scala compiler bug. please upgrade to the latest scala point release, 2.12.16.
Source: stackoverflow.com
Related Query
- Scala: packages cannot be represented as URI
- sbt test error: java.lang.RuntimeException: /packages cannot be represented as URI
- Where does Scala store information that cannot be represented in Java?
- How do I resolve the ` /packages cannot be represented as URI` issue?
- "/packages cannot be represented as URI"
- IntelliJ Cannot Import sbt Project
- Google Maps API v2 SupportMapFragment inside ScrollView - users cannot scroll the map vertically
- Play Framework 2.1 - Cannot find an implicit ExecutionContext
- Multiple packages definition
- How to instantiate an instance of type represented by type parameter in Scala
- Strange sbt bug where I cannot import sbt project due to keys colliding with themselves
- Are side effects everything that cannot be found in a pure function?
- Typesafe Swing events—"The outer reference in this type test cannot be checked at run time"
- In Scala, why do I get this "polymorphic expression cannot be instantiated to expected type"?
- What are nested/unnested packages in Scala 2.8?
- ERROR SparkContext: Error initializing SparkContext. java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed
- Cannot create apply function with static language?
- IntelliJ IDEA: Cannot import SBT project
- IntelliJ cannot resolve symbol in build.sbt
- Spark Scala: Cannot up cast from string to int as it may truncate
- cannot find class manifest for element type T
- Can I import from multiple packages all at once in Scala?
- `implicit' modifier cannot be used for top-level objects
- IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
- Intellij: "Error running Scala Console: Cannot Start Process"
- Cannot find an implicit ExecutionContext. You might pass spray scala
- Why cannot this.type be used for new instances
- Twirl templates cannot be seen in the code (spray application)
- Why does sbt console not see packages from subproject in multi-module project?
- Why in Scala Long cannot in initialized to null whear as Integer can
More Query from same tag
- Scala generic invocation on overloaded methods
- Playframework: How do I bind JSON to case class that contains a map?
- How to make Slick respect DB column defaults on insert?
- Top n items in a List ( including duplicates )
- Scala enumeration to int
- Specify datatypes while updating MongoDB document using Casbah
- Apache Spark - Feature Extraction Word2Vec example and exception
- akka simple cluster with two seed nodes
- JProgressBar in JTable not updating
- Apache Spark: RDD multiple passes with a simple operation
- Sequencing both Scalaz WriterT and Either with for-yield
- How to set RequestHeader with WSClient and play framework?
- How to share SparkContext with methods that need it implicitly
- How to get truly atomic update for TrieMap.getOrElseUpdate
- Converting csv to parquet in spark gives error if csv column headers contain spaces
- How to split CSV lines into tuples with Spark Scala
- Ungrouping the grouped table in Scala
- How can I extract results of aggregate queries in slick?
- Exception while executing in Scala-Spark - java.lang.NumberFormatException: For input string: "volume"
- Structure to allow @tailrec when multiple recursive calls are invoked
- Get Scala Type for a java.lang.Class[T] in Scala 2.10
- config.ConfigException$Missing: No configuration setting found for key 'dev' -- scala
- Immutable Scala Collection
- parameter type has "T=", what's the meaning
- convert distinct key into columns in spark
- Reduce code duplication by abstracting mixing class
- How to invoke method on companion object via reflection?
- What does !# (reversed shebang) means?
- how to find the tuple value using scala?
- Time-based thread-safe priority queue