引导层Java.lang.module.resolutionException在初始化期间发生错误

发布于 2025-02-02 11:07:10 字数 629 浏览 2 评论 0原文

目前,我正在为一些作业工作,postgis.jdbc与Postgis..demetry和Postgresql结合使用。 现在的问题是,在运行该程序时,Intellij总是会引发以下错误。

启动层初始化期间发生错误 java.lang.module.ResolutionException:模块PostGis.DEMETRY和 postgis.jdbc导出软件包org.postgis to Module org.postgresql.jdbc

用退出代码1

完成的过程

我尝试导入的方式,但似乎无效。

根据以下条目,我应该使用classPath代替模块path,但是我找不到使用类路径而不是模块路径导入JAR文件的设置。

我尝试使用运行时导入而不是编译选项导入,但是这些软件包不再被Intellij识别,因此这对我来说不是一个工作选项。

感谢您的帮助。

Currently I am working for some homework, with postgis.jdbc in combination with postgis.geometry and postgresql.
The problem is now that Intellij always throws the following error when running the programm.

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules postgis.geometry and
postgis.jdbc export package org.postgis to module org.postgresql.jdbc

Process finished with exit code 1

I tried different ways to import, but nothing seems to work.

According to the following entry I should use classpath instead of modulepath but I can't find a setting to import a jar file using class path instead of module path.

I tried to import using Runtime instead of compile option but the packages are no longer recognized by Intellij, so this is not a working option for me.

Thanks for help.

enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文