I want to build .jar in NetBean 8.0.2.
I have developed a small project based javafx application.
My project uses packages such as com.sun.org.apache.xml.internal.security
, com.sun.org.apache.xml.internal.security.c14n
and com.sun.org.apache.xml.internal.security.utils
.
My project runs well at Netbean without warning or error.
But When I build this project as jar file, following error is occurred:
**error: package com.sun.org.apache.xml.internal.security does not exist**
**error: package com.sun.org.apache.xml.internal.security.c14n does not exist**
**error: package com.sun.org.apache.xml.internal.security.utils does not exist**
How to solve this problem?
If your project uses Maven, add Maven dependency com.sun.xml.security:xml-security-impl:1.0
to your Maven project file (pom.xml
).
You have to add the xml-security-impl.jar
to your classpath.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With