java - 当我在 selenium 中运行该程序时,我收到以下消息。使用的Java版本是9.0.1

标签 java selenium

错误:(4, 15) java: 包 org.omg.CORBA 不可见 (包 org.omg.CORBA 在模块 java.corba 中声明,该模块不在模块图中)

在 java 8 中运行良好

最佳答案

看这里https://blog.codefx.org/java/java-9-migration-guide/ “Java EE 模块的依赖关系”部分 引用自那里:

There’s a lot of code in Java SE that’s actually Java EE related. It ended up in these six modules: java.corba with javax.activity, javax.rmi, javax.rmi.CORBA, and org.omg.* packages For various compatibility reasons (one of them being split packages, which we will look at next), code on the class path does not see these modules by default, which leads to compile or run time errors...

error: XXX is not visible (package XXX is declared in module XXX, which is not in the module graph)

那里也描述了解决方案。看来是你的问题。

关于java - 当我在 selenium 中运行该程序时,我收到以下消息。使用的Java版本是9.0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47435001/

相关文章:

java - 如何在 Eclipse 中查看特定类的源代码?

java - 使用类名在 Selenium 中创建 WebElements 列表

java - 使用 Selenium Webdriver (java) 自动截取每个新页面的屏幕截图

python - 如何从 Selenium 处理 Shadow DOM 中的元素

java - 如何使用 Spring Boot REST 限制对 .html 页面的访问

java - 如何在 matteborder 中的图标周围添加空白

java - Spring Security JWT 过滤器适用于所有请求

java - intellij idea 在 : import org. apache.spark.{SparkContext, SparkConf} 上出现 scala 错误

selenium - FunCaptcha回调函数中如何提交token?

python-3.x - Selenium 可以检测 Python3 中网页何时完成加载吗?