<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: InvocationTargetException: No class loader available</title><link>https://answers.axonivy.com/questions/4139/invocationtargetexception-no-class-loader-available</link><description>&lt;p&gt;Since a few days I'm facing strange exception when trying to run the maven build for my IvyProject. 
How can I get rid of it? Entering the -X command doesn't really help here.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[ERROR] Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.0:compileProject (default-compileProject) on project connectivity-demos: Failed to compile project '/mnt/data/dev/7.0/ivyProjects/ConnectivityDemos/ConnectivityDemos'.: InvocationTargetException: No class loader available for the bundle: ch.ivyteam.ivy.dataclasses.build_7.0.15.1911050149 [25] -&amp;gt; [Help 1]
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/4139/invocationtargetexception-no-class-loader-available" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 05 Nov 2019 08:17:29 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4139/invocationtargetexception-no-class-loader-available/4140</link><description>&lt;p&gt;The issues occurs if the java version which builds the project is not compatible with the project-build-plugin.&lt;/p&gt;
&lt;p&gt;In this case the 7.0 project-build-plugin (which works with java 1.8) is running with the java 11. Therefore class loading issues arise.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/buildWithIncompatibleJDK.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To get rid of it:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;set the &lt;code&gt;JAVA_HOME&lt;/code&gt; environment variable to a JDK that is compatible with the project-build-plugin in charge.&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 05 Nov 2019 08:17:29 -0500</pubDate><guid>https://answers.axonivy.com/questions/4139/invocationtargetexception-no-class-loader-available/4140</guid></item></channel></rss>