Root Exception was: org.apache.activemq.ActiveMQConnectionFactory. Type: class java.lang.ClassNotFoundException
Solution:
For Maven Users,
If your application is mavenized, then go to POM file and add the following dependency:
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.14.5</version>
</dependency>
If your application is mavenized, then go to POM file and add the following dependency:
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.14.5</version>
</dependency>
For gradle users,
If your application is gradlized, then go to build.gradle and add the following dependency:
compile group: 'org.apache.activemq', name: 'activemq-all', version: '5.14.5'
If your application is gradlized, then go to build.gradle and add the following dependency:
compile group: 'org.apache.activemq', name: 'activemq-all', version: '5.14.5'
For Others,
If your application is not mavenized, then
-
Right click on your project
-
click on
Properties
and in the properties window,
-
click/select
Java Build Path
and select the tab Libraries
and
-
click on the button
Add external JARS..
and
-
select file
activemq-all-x.xx.x,jar
which will be available in the root folder of the apache-activemq folder.
If your application is not mavenized, then
Right click on your project click onProperties
and in the properties window, click/selectJava Build Path
and select the tabLibraries
and click on the buttonAdd external JARS..
and select fileactivemq-all-x.xx.x,jar
which will be available in the root folder of the apache-activemq folder.
No comments:
Post a Comment