Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 773
Next
In Process
Mingle tap
Mingle tap

Mingle tap

  • Junior Lead,Arka Soft pvt lmtd.Hyderabad.
  • 118 Questions
  • 70 Answers
  • 1 Best Answer
  • 225 Points
View Profile
  • 0
Mingle tap
Asked: September 13, 20202020-09-13T16:01:26+05:30 2020-09-13T16:01:26+05:30In: Java

e java.lang.noclassdeffounderror javax/xml/bind/jaxbexception

  • 0

my java SE path is succesful and i updated java version recently…my java previous version is java 9 and i updated to 11.
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException

how to fix this,no class found error in java ?

e java.lang.noclassdeffounderror javax/xml fixfix e java.lang.noclassdeffounderrorhow to fix java errorsjava errors
  • 2
  • 11,400
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • How to resolve the issue java.lang.OutOfMemoryError: Java heap space?
    • java equals int cannot be dereferenced how to fix
    • java error code 1603 how to fix
    • exception in thread awt-eventqueue-0'' java awt awterror boxlayout can t be shared
    • java error: could not find or load main class how to fix
    • java error boolean cannot be dereferenced
    • How to solve null pointers should not be dereferenced sonar fix

    2 Answers

    1. Alexson
      2020-09-18T10:20:04+05:30Added an answer on September 18, 2020 at 10:20 am

      i too faced “e java.lang.noclassdeffounderror javax/xml/bind/jaxbexception” same java exception and solved it by adding the following dependencies to the build
      the jaxb-api and jaxb-runtime.That’s it your above error will gets solved.

      i will drop the dependencies to add to your build to get rid of this e java.lang.noclassdeffound error…..

      <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.0</version>
      </dependency>
      <dependency>
      <groupId>org.eclipse.persistence</groupId>
      <artifactId>eclipselink</artifactId>
      <version>2.7.0</version>
      </dependency>

      after adding this,try to execute your build and check whether your problem is fixed. Many are facing this exception when they are updating java to any version above 9.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Namrata Podder

      Namrata Podder

      • India
      • 5 Questions
      • 12 Answers
      • 1 Best Answer
      • 59 Points
      View Profile
      Namrata Podder
      2020-10-16T15:32:18+05:30Added an answer on October 16, 2020 at 3:32 pm
      This answer was edited.

      The main reason for getting e java.lang.noclassdeffounderror javax/xml/bind/jaxbexception error is :

      The JAXB APIs are considered to be Java EE APIs and therefore are no longer contained on the default classpath in Java SE 9. In Java 11, they are completely removed from the JDK.

      Fortunately, these Java EE APIs that were provided in JDK 6/7/8 are still in the JDK, but they just aren’t on the classpath by default.
      The dependencies for this is to be added manually

      The solution for the java.lang.noclassdeffounderror javax/xml/bind/jaxbexception

      Just add the following dependencies to your pom.xml file

      &ltdependency&gt
      &ltgroupId&gtjavax.xml.bind&lt/groupId&gt
      &ltartifactId&gtjaxb-api&lt/artifactId&gt
      &ltversion&gt2.3.0&lt/version&gt
      &lt/dependency&gt
      &ltdependency&gt
      &ltgroupId&gtorg.eclipse.persistence&lt/groupId&gt
      &ltartifactId&gteclipselink&lt/artifactId&gt
      &ltversion&gt2.7.0&lt/version&gt
      &lt/dependency&gt

      Hope it helps!

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • dynamicapps5

      how to solve error illegal start of expression in java

    • sita

      write a program to calculate the electricity bill in java

    • Himasree

      How to insert data in java through database?

    • Swathi

      How to run java code in eclipse

    • Swathi

      What is null pointer exception in java?

    • kiran kumar85

      javascript validation client side and submitting to database using webspring

    • Rashika

      When to use volatile variable in Java?

    • Aniya

      how to fix java error in tlauncher authentication

    Stats

    • Questions 1,991
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Rashika

      How to resolve the issue java.lang.OutOfMemoryError: Java heap space?

    • Aniya

      java equals int cannot be dereferenced how to fix

    • Aniya

      java error code 1603 how to fix

    • shree

      exception in thread awt-eventqueue-0'' java awt awterror boxlayout can t be shared

    • shree

      java error: could not find or load main class how to fix

    • shree

      java error boolean cannot be dereferenced

    • Aniya

      How to solve null pointers should not be dereferenced sonar fix

    • Mingle tap

      Exception get java.lang.NullPointerException when setting up c/c++ build 2020

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.