gpt4 book ai didi

linux - 在斯卡拉 : not able to fin a class in Linux but in Windows for forName

转载 作者:太空宇宙 更新时间:2023-11-04 10:17:46 25 4
gpt4 key购买 nike

我正在编写 Scala 代码。在 Windows 中它正在工作:

Class.forName("opt/user/Foo")

其中 Foo 是一个 Scala 类。但是,在 Ubuntu Linux 中,这是行不通的。有什么想法吗?

最佳答案

那些看起来很像常见的目录名称。

可能您的 Linux 类路径包含一个像 optuser 这样的目录,它被当作包名。

关于linux - 在斯卡拉 : not able to fin a class in Linux but in Windows for forName,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45335729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com