Problems importing java package into scala project (IntelliJ 10.5.2)

Trying to add an "import" statement to my new scala project (I'm using IntelliJ 10.5.2 right now) the highlighter syntax tells me that it cannot find the java package:

import java.util.zip //Cannot resolve symbol java object Main extends App { override def main(args: Array[String]) { } } 

What happened. What to do to import this package?

+6
source share
1 answer

Make sure you have the Java SDK installed:

File -> Project Structure -> Project -> Project SDK

See Where can I configure the JDK project .

+14
source

Source: https://habr.com/ru/post/898850/


All Articles