In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces what are the points for attention of Java 11 compatible old projects, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
As we all know, Oracle's Java8 has been disabled, and Java11 is the next LTS version. I plan to upgrade some old projects to Java11 in the near future. Write down some compatibility issues that need to be paid attention to here.
Javax.xml.bind.JAXBException ClassNotFound problem
JAXB api, the API of java EE, was no longer included in java SE 9, and the solution that was bundled together in the 6-7-8's was to add jar packages manually. If you are using maven, you can add the following dependencies
Javax.xml.bind jaxb-api 2.2.11 com.sun.xml.bind jaxb-impl 2.2.11 com.sun.xml.bind jaxb-core 2.2.11 javax.activation activation 1.1.1
Java.lang.NoClassDefFoundError: javax/xml/ws/EndpointReference exception
The cause of the problem is the same as described in point 1 above. It is separated from java9 and can be introduced separately.
Javax.xml.ws jaxws-api 2.2.12
About NoClassDefFound exceptions of com.sun.image.codes-related packages
There seems to be no solution to this problem. I haven't found a replacement package from the maven warehouse for a long time. Of course, this seems to be because this is sun's own API. If you are using openjdk, then the problem will be solved. If you are unfortunately using oracle's JDK, then change the related class, use java's imageIO-related API, or replace the dependent components.
NoClassDefFound exception of WebService related package
Introduce the following packages to solve the problem
Javax.xml.ws jaxws-api 2.2.12 javax.jws javax.jws-api 1.1 notes on Java 11 compatibility with old projects are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.