Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find or load main class com.sun.tools.internal.xjc.XJCFacade

i'm running eclipse luna with jdk 8 and i tried generating jaxb classes and this error kept showing, i tried multiple solutions found on internet but nothing really worked with me ps : i'm pointing jdk 8 not the jre. please help!

like image 737
rym Avatar asked Dec 17 '25 19:12

rym


2 Answers

Please try pointing the 'installed JRE' to JDK in eclipse->windows->preferences->installed JRE

Hope it helps you.

like image 175
Anant Avatar answered Dec 19 '25 08:12

Anant


Or you need to add the following dependency in your pom.xml file

<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-xjc</artifactId>
    <version>${jaxb-xjc.version}</version>
</dependency>
like image 39
Hany Kamal Avatar answered Dec 19 '25 08:12

Hany Kamal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!