code-server scala error: object apache is not a member of package org

原因是scala缺少包,需要把spark或对应的包放入scala目录下的lib,然后重启主机,在terminal输入reboot即可。

如果不重启主机,则在交互式编程中可以成功import。但是直接在控制台输入scala *.scala则会显示 not found或者形如标题的错误。

code-server scala error: object apache is not a member of package org

 

 code-server scala error: object apache is not a member of package org

 

code-server scala error: object apache is not a member of package org

上一篇:js新版语法 可选链操作符( ?. ) 不好使


下一篇:fastjson与net.sf.json区别