ElasticSearch Master : ClassNotfound Exception PluginManager

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.

--

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.

--

Oh ! Sorry for that, and thanks for your answer ! :slight_smile:

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.

--