# ElasticSearch Master : ClassNotfound Exception PluginManager

**URL:** <https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349>\
**Category:** Elasticsearch\
**Created:** [January 15, 2013, 12:13pm UTC](https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349 "2013-01-15T12:13:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [January 15, 2013, 12:13pm UTC](https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349/1 "2013-01-15T12:13:08Z")

</div>

Hello,

Just built ES from today's Master branch. When tryong to install a plugin I  
just get a ClassNotFoundException...

Z:\Mes\_Projets\elasticsearch-master\>bin\plugin.bat -install

> jprante/elasticsearc  
> h-river-jdbc/1.3.2  
> Exception in thread "main" java.lang.NoClassDefFoundError:  
> org/elasticsearch/plu  
> gins/PluginManager  
> Caused by: java.lang.ClassNotFoundException:  
> org.elasticsearch.plugins.PluginMan  
> ager  
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
> at java.security.AccessController.doPrivileged(Native Method)  
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)  
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)  
> Could not find the main class: org.elasticsearch.plugins.PluginManager.  
> Program  
> will exit.

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [January 15, 2013, 7:05pm UTC](https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349/2 "2013-01-15T19:05:55Z")

</div>

The scripts that you find in the bin directory are configured to be used  
with installation of elasticsearch (not the source code directory). For  
example, these script assume that the elasticsearch jars will be in the lib  
directory. If you want to use scripts to install plugins, simply build  
elasticsearch package (mvn package -DskipTests=true) and unzip the the  
elasticsearch package  
(target/releases/elasticsearch-0.21.0.Beta1-SNAPSHOT.zip) to some other  
directory. Then you will be able to use scripts there.

On Tuesday, January 15, 2013 7:13:08 AM UTC-5, Yann Barraud wrote:

> Hello,
> 
> Just built ES from today's Master branch. When tryong to install a plugin  
> I just get a ClassNotFoundException...
> 
> Z:\Mes\_Projets\elasticsearch-master\>bin\plugin.bat -install
> 
> > jprante/elasticsearc  
> > h-river-jdbc/1.3.2  
> > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > org/elasticsearch/plu  
> > gins/PluginManager  
> > Caused by: java.lang.ClassNotFoundException:  
> > org.elasticsearch.plugins.PluginMan  
> > ager  
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
> > at java.security.AccessController.doPrivileged(Native Method)  
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)  
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)  
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:248)  
> > Could not find the main class: org.elasticsearch.plugins.PluginManager.  
> > Program  
> > will exit.

--

---

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [January 16, 2013, 9:32am UTC](https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349/3 "2013-01-16T09:32:27Z")

</div>

Oh ! Sorry for that, and thanks for your answer ! 🙂

Le mardi 15 janvier 2013 20:05:55 UTC+1, Igor Motov a écrit :

> The scripts that you find in the bin directory are configured to be used  
> with installation of elasticsearch (not the source code directory). For  
> example, these script assume that the elasticsearch jars will be in the lib  
> directory. If you want to use scripts to install plugins, simply build  
> elasticsearch package (mvn package -DskipTests=true) and unzip the the  
> elasticsearch package  
> (target/releases/elasticsearch-0.21.0.Beta1-SNAPSHOT.zip) to some other  
> directory. Then you will be able to use scripts there.
> 
> On Tuesday, January 15, 2013 7:13:08 AM UTC-5, Yann Barraud wrote:
> 
> > Hello,
> > 
> > Just built ES from today's Master branch. When tryong to install a plugin  
> > I just get a ClassNotFoundException...
> > 
> > Z:\Mes\_Projets\elasticsearch-master\>bin\plugin.bat -install
> > 
> > > jprante/elasticsearc  
> > > h-river-jdbc/1.3.2  
> > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > org/elasticsearch/plu  
> > > gins/PluginManager  
> > > Caused by: java.lang.ClassNotFoundException:  
> > > org.elasticsearch.plugins.PluginMan  
> > > ager  
> > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
> > > at java.security.AccessController.doPrivileged(Native Method)  
> > > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)  
> > > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)  
> > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
> > > at java.lang.ClassLoader.loadClass(ClassLoader.java:248)  
> > > Could not find the main class: org.elasticsearch.plugins.PluginManager.  
> > > Program  
> > > will exit.

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/elasticsearch-master-classnotfound-exception-pluginmanager/10349/4 "2017-07-06T02:56:11Z")

</div>


