object xml is not a member of package scala

前端 未结 4 826
离开以前
离开以前 2020-12-16 15:08

The following code in the compiler:

abstract class query {def get: Unit => scala.xml.Elem}

gives me the error: \"object xml is not a mem

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 16:00

    (This is for Windows at least)

    In Eclipse go to

    Project > Properties

    On the windows that appears (should be on Java Build Path on the left) choose the "libraries" section and click on "Add External JARs".

    Navigate to your installation folder and then to the "lib" folder (usually

    C:\Program Files (x86)\scala\lib

    or

    C:\Program Files\scala\lib

    )

    and add

    scala-xml_2.11-1.0.2

    or whatever version you have.

提交回复
热议问题