在 Java 1.8 中,我使用以下方法生成 WS 客户端没有问题:
wsdl2java -ant -client -d ClientDir hello_world.wsdl
参考 Apache CXF 文档 http://cxf.apache.org/docs/developing-a-consumer.html
但在 Java 9 中,我收到以下错误:
-Djava.endorsed.dirs=./../lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我知道这部分问题已经在How do you replace endorsed directory in Java 9? 但是,@nullpointer 提出的解决方案对于像我这样的 java 初学者来说还不够清楚。
谁能以“简单的方式”解释我如何在不回到 Java 1.8 的情况下生成 ws 客户端存根?
谢谢