Java 9 lösningen på ett fel som uppstår med applikationen

Added by Frode almost 3 years ago

Hej
Det finns ett problem i Java 9 med javax.xml.bind.DatatypeConverter åtminstone i Eclipse SE.
Problemet består i att Oracle har tagit bort stöd för vissa bibliotek som tillhör Enterprice (EE) i Java SE.

Jag löste det genom att lägga till beroendet som saknades javax.xml.bind biblioteket med Maven i pom.xml enligt följande.

<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.9</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.9</version>
</dependency>
</dependencies>

Det är den översta dependensyn som skiljer sig från er guide javax.xml.bind

Sen var jag även tvungen att lägga till ett "VM argument" när applikationen kör enligt följande i Eclipse

1. Högerklicka på mainfilen den som heter "SimpleJavaClient.java" i projektet.
2. Popupmenyn: Run As/Run Configurations
3. Välj fliken: "(X)= Arguments"
4. Lägg till följande i fältet under etiketten "VM Arguments" utan citationstecken "--add-modules java.activation"

Bli inte oroliga för att det står java.blablabla trotts att du importerar javax lib, du ser rätt.


Replies (20)

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Frode almost 3 years ago

Ups formatet blev lite skumt för maven koden.
Bytt ut alla: &lt med < och alla &gt med > från pom exemplet.

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Nordnet_Support over 2 years ago

Det finns en ny användarguide nu som löser ditt problem, du kan kika på den här.

Henrik

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Boyd about 2 years ago

När en ny funktionsläge är tillgänglig kommer eventuella tidigare icke-LTS-utgåvor att anses ersättas. Java SE 9 var till exempel en icke-LTS-version och omedelbart ersatt av Java SE 10 (även icke-LTS), Java SE 10 i sin tur omedelbart ersätts av Java SE 11.

https://domyhomeworkonline.net/do-my-biology-homework.php service.

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Jordan 7 months ago

So you may think, what the heck do I need to look at features for? I need a grill that can cook meat, and that’s it! Well, don’t think too fast there buddy, because features are very important for cooking meat. I love the multi-tiered cooking surfaces, especially for cooking corn. Also, the multi-tiered surfaces are perfect for staging hot dogs when you are throwing a large party. Another feature to look for is the side burners that can also sear. https://hannahtims2019.wixsite.com/buygrill/

https://royalcbd.com/virginia/ - Added by website about 1 month ago

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. https://royalcbd.com/virginia/

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Lola about 1 month ago

Hey! You have come to the right place! I am professional writer and I can assist you in any essay related issue! I understand how it is difficult for students to cope with the number of home assignments they are to do. Writing is my pleasure, so for me completing paper for you is quit quick and interesting process, so you even needn't to worry about the deadline date. Moreover, for that students who want to write paper without writer help, on my writing platform papers-land https://papers-land.com/ you can find already written articles. And guys do not worry about the price, cause at EssaysEmpire we produce cheap papers, but this price doesn't affect the excellent quaility of our work, also you will be surprised by the affiliate program we offer to guys who introduce other people to our company.

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website about 1 month ago

Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.먹튀검증

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Barre about 1 month ago

Did you get any proper solution? Thanks for sharing this information https://www.myaarpmedicare.zone/

pharma consultant - Added by website about 1 month ago

I have added and shared your site to my social media accounts to send people back to your site because I am sure they will find it extremely helpful too. pharma consultant

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Fender 27 days ago

I was looking for the information regarding the same. Thanks for addressing this topic [url=https://www.upsers.run/]upsers[/url].

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by Fender 27 days ago

I was looking for the information regarding the same. Thanks for addressing this topic https://www.upsers.run/

Bigg Boss Vote - Added by website 23 days ago

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, Bigg Boss Vote

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 22 days ago

Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information.buy office 2019 mac

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 19 days ago

Book An Appointment to view Hyll on Holland ShowFlat & get VVIP Discounts (Limited Time), Direct Developer Price, & Hardcopy E-Brochure. Guaranteed with ...hyll on Holland condo

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 8 days ago

Many of us have been completely marvelling enviously around the thriving web based modern casino trade, planning to get some of that phase. Through web based casinos making in money on product sales per annum, it will be modest think about how come plenty of are attempting to acquire a try.먹튀검증사이트

BBQ and Hog Roast buffet catering Scarborough - Added by website 7 days ago

For a long time me & my friend were searching for informative blogs, but now I am on the right place guys, you have made a room in my heart!BBQ and Hog Roast buffet catering Scarborough

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 6 days ago

some people does not need to provide you with tremendous success or simply facial skin that ignominy in losing profits. It's really a dependable and even secure surrounding in the affiliate websites have fun in and even get paid some funds.먹튀검증커뮤니티

먹튀검증커뮤니티 - Added by website 4 days ago

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work 먹튀검증커뮤니티

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 3 days ago

Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks!먹튀검증

RE: Java 9 lösningen på ett fel som uppstår med applikationen - Added by website 3 days ago

i never know the use of adobe shadow until i saw this post. thank you for this! this is very helpful.old toys

(1-20/20)