Java版本兼容
我有一台运行java代码的服务器,需要在另一台服务器上设置相同的环境来运行代码
现在,当我尝试运行我的程序时,我收到此错误
Exception in thread "main" java.lang.NoSuchMethodError: 'void sun. security.pkcs11.SunPKCS11.(java.io.InputStream)',
但在第一台机器上工作正常并得到结果
我在第一台机器上运行 java -v 并得到此结果
java 版本“1.8.0_25” Java(TM) SE 运行时环境(内部版本 8.1.002) SAP Java Server VM(内部版本 8.1.002 25.11-b13,2014 年 12 月 16 日 04:44:15 - 81_REL - optU - windows x86 - 6 - bas2:230506(混合模式)),
但我找不到相同的安装环境在另一台服务器上并使我的程序运行
I have a server with java code running and need to setup the same environment on another server to run the code
Now when I try to run my program I get this error
Exception in thread "main" java.lang.NoSuchMethodError: 'void sun.security.pkcs11.SunPKCS11.(java.io.InputStream)'
but on the first machine working fine and getting the result
I run java -v on first machine and get this result
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 8.1.002)
SAP Java Server VM (build 8.1.002 25.11-b13, Dec 16 2014 04:44:15 - 81_REL - optU - windows x86 - 6 - bas2:230506 (mixed mode))
but I can't find the same environment to install on the other server and make my program work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论