Exception in thread "main" java.lang.NoClassDefFoundError

Highlighted
Six Stars

Exception in thread "main" java.lang.NoClassDefFoundError

tryning to run job in cmd...

talend installation dir =>G:\work\Talend3.1

getting error..

 

 

 

G:\ProjectBot\code\BittrexAPI>java -Xms256M -Xmx512M -cp .;../lib/routines.jar;../lib/cxf-rt-frontend-jaxrs-3.1.7.jar;../lib/javax.wsdl_1.6.2.v201012040545.jar;../lib/org.apache.log4j_1.2.15.v201012070815.jar;../lib/slf4j-log4j12-1.7.5.jar;../lib/wss4j-ws-security-stax-2.1.7.jar;../lib/xmlschema-core-2.2.1.jar;../lib/opensaml-soap-api-3.1.1.jar;../lib/opensaml-xacml-api-3.1.1.jar;../lib/com.google.guava_15.0.0.v201403281430.jar;../lib/wss4j-ws-security-dom-2.1.7.jar;../lib/wss4j-ws-security-policy-stax-2.1.7.jar;../lib/cxf-rt-rs-extension-providers-3.1.7.jar;../lib/stax2-api-3.1.4.jar;../lib/opensaml-xacml-saml-api-3.1.1.jar;../lib/wss4j-policy-2.1.7.jar;../lib/cxf-core-3.1.7.jar;../lib/opensaml-security-impl-3.1.1.jar;../lib/opensaml-xacml-saml-impl-3.1.1.jar;../lib/javax.ws.rs-api-2.0.1.jar;../lib/opensaml-profile-api-3.1.1.jar;../lib/joda-time-2.2.jar;../lib/javax.annotation_1.2.0.v201401042248.jar;../lib/jettison-1.3.7.jar;../lib/cxf-rt-security-saml-3.1.7.jar;../lib/cxf-rt-rs-client-3.1.7.jar;../lib/opensaml-xmlsec-api-3.1.1.jar;../lib/opensaml-security-api-3.1.1.jar;../lib/cxf-rt-ws-security-3.1.7.jar;../lib/opensaml-saml-impl-3.1.1.jar;../lib/xmlsec-2.0.7.jar;../lib/slf4j-api-1.7.5.jar;../lib/wss4j-ws-security-common-2.1.7.jar;../lib/neethi-3.0.3.jar;../lib/cxf-rt-databinding-jaxb-3.1.7.jar;../lib/ojdbc6.jar;../lib/bcprov_1.51.0.jar;../lib/stax-api-1.0.1.jar;../lib/ehcache-2.10.2.jar;../lib/jasypt-1.9.2.jar;../lib/cryptacular-1.0.jar;../lib/cxf-rt-bindings-soap-3.1.7.jar;../lib/log4j-1.2.16.jar;../lib/opensaml-saml-api-3.1.1.jar;../lib/cxf-rt-wsdl-3.1.7.jar;../lib/cxf-rt-security-3.1.7.jar;../lib/opensaml-core-3.1.1.jar;../lib/security-common-6.3.1.jar;../lib/woodstox-core-asl-4.4.1.jar;../lib/opensaml-xacml-impl-3.1.1.jar;../lib/opensaml-xmlsec-impl-3.1.1.jar;../lib/org.apache.commons.codec_1.6.0.v201305230611.jar;../lib/cxf-rt-transports-http-3.1.7.jar;../lib/dom4j-1.6.1.jar;../lib/jaxen-1.1.1.jar;../lib/talend-oracle-timestamptz.jar;../lib/xpathutil-1.0.0.jar;../lib/talendcsv.jar;../lib/talend_file_enhanced_20070724.jar;bittrexapi_0_1.jar; local_project.bittrexapi_0_1.BittrexAPI --context=Default
log4j:WARN No appenders could be found for logger (org.apache.cxf.common.logging.LogUtils).
log4j:WARN Please initialize the log4j system properly.
[statistics] disconnected
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/PropertyException
at local_project.bittrexapi_0_1.BittrexAPI.tRowGenerator_1Process(BittrexAPI.java:1262)
at local_project.bittrexapi_0_1.BittrexAPI.runJobInTOS(BittrexAPI.java:8865)
at local_project.bittrexapi_0_1.BittrexAPI.main(BittrexAPI.java:8728)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.PropertyException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

Moderator

Re: Exception in thread "main" java.lang.NoClassDefFoundError

Hello,

 Did you export your job script file (.bat or .sh file) and run it in cmd? Have you already setup routine dependencies for building the job?

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch