clojure:错误:找不到或加载主类Test.core.main

发布于 2025-02-04 05:23:07 字数 735 浏览 1 评论 0原文

我只想在Clojure中构建一个简单的“ Hello World”并编译:

”“在此处输入图像描述”

“在此处输入图像说明”

”

任何人都可以告诉我为什么我为什么得到这个错误,当尝试执行JAR时:

”在此处输入图像描述”

I just want to build a simple "hello world" in clojure and compile it:

enter image description here

enter image description here

enter image description here

Can anybody tell me why i am getting this error, when trying to execute the jar:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁我热情 2025-02-11 05:23:07

我偶然找到了解决方案:

  1. 我应该参考主要方法在哪里,而不是方法本身。
  2. 我忘记了我认为的gen-class
  3. ,我应该称为“ main” - main”

“在此处输入图像说明”

“

I found the solution by accident:

  1. I just should reference, where the main method is, but not the method itself.
  2. I forgot the gen-class
  3. I think, i should call the "main" "-main"

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文