# NoClassDefFound running bin/plugin on 0.18.3

**URL:** <https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943>\
**Category:** Elasticsearch\
**Created:** [November 22, 2011, 3:28pm UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943 "2011-11-22T15:28:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_Barciauskas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joel_barciauskas/32/3069_2.png) [@Joel\_Barciauskas](https://discuss.elastic.co/u/Joel_Barciauskas)\
**Post date:** [November 22, 2011, 3:28pm UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943/1 "2011-11-22T15:28:28Z")

</div>

I'm getting this:

# ./plugin

Exception in thread "main" java.lang.NoClassDefFoundError: /opt/  
elasticsearch/lib/jline-0/9/94/jar  
Caused by:  
java.lang.ClassNotFoundException: .opt.elasticsearch.lib.jline-0.9.94.jar  
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:306)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:  
301)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  
Could not find the main class: /opt/elasticsearch/lib/  
jline-0.9.94.jar. Program will exit.

The only other result in the mailing list similar to this said to add  
CDPATH="" to the script, but it's there now in 0.18.3

Any thoughts?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 22, 2011, 3:33pm UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943/2 "2011-11-22T15:33:34Z")

</div>

Use 0.18.4, there was a bug in the plugin script in 0.18.3.

On Tue, Nov 22, 2011 at 5:28 PM, Joel Barciauskas \<  
[jbarciauskas@bluestatedigital.com](mailto:jbarciauskas@bluestatedigital.com)\> wrote:

> I'm getting this:
> 
> # ./plugin
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: /opt/  
> elasticsearch/lib/jline-0/9/94/jar  
> Caused by:  
> java.lang.ClassNotFoundException: .opt.elasticsearch.lib.jline-0.9.94.jar  
> 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:306)  
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:  
> 301)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  
> Could not find the main class: /opt/elasticsearch/lib/  
> jline-0.9.94.jar. Program will exit.
> 
> The only other result in the mailing list similar to this said to add  
> CDPATH="" to the script, but it's there now in 0.18.3
> 
> Any thoughts?

---

<div class="post-metadata">

**Author:** ![Joel\_Barciauskas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joel_barciauskas/32/3069_2.png) [@Joel\_Barciauskas](https://discuss.elastic.co/u/Joel_Barciauskas)\
**Post date:** [November 22, 2011, 4:09pm UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943/3 "2011-11-22T16:09:51Z")

</div>

Ok, is there a guide to upgrading somewhere? Can I just replace the  
elasticsearch.jar file in the lib directory and restart?

On Nov 22, 10:33 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Use 0.18.4, there was a bug in the plugin script in 0.18.3.
> 
> On Tue, Nov 22, 2011 at 5:28 PM, Joel Barciauskas \<
> 
> [jbarciaus...@bluestatedigital.com](mailto:jbarciaus...@bluestatedigital.com)\> wrote:
> 
> > I'm getting this:
> 
> > # ./plugin
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError: /opt/  
> > elasticsearch/lib/jline-0/9/94/jar  
> > Caused by:  
> > java.lang.ClassNotFoundException: .opt.elasticsearch.lib.jline-0.9.94.jar  
> > 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:306)  
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:  
> > 301)  
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  
> > Could not find the main class: /opt/elasticsearch/lib/  
> > jline-0.9.94.jar. Program will exit.
> 
> > The only other result in the mailing list similar to this said to add  
> > CDPATH="" to the script, but it's there now in 0.18.3
> 
> > Any thoughts?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 22, 2011, 5:53pm UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943/4 "2011-11-22T17:53:28Z")

</div>

In general, when you upgrade, you can simply unpack the new version, point  
the data location to the new one, and update relevant configs. In this  
case, you can simply replace the plugin file, which is the only change  
between 0.18.3 and 0.18.4, but I suggest using the "official" 0.18.4  
version to remove confusion.

On Tue, Nov 22, 2011 at 6:09 PM, Joel Barciauskas \<  
[jbarciauskas@bluestatedigital.com](mailto:jbarciauskas@bluestatedigital.com)\> wrote:

> Ok, is there a guide to upgrading somewhere? Can I just replace the  
> elasticsearch.jar file in the lib directory and restart?
> 
> On Nov 22, 10:33 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Use 0.18.4, there was a bug in the plugin script in 0.18.3.
> > 
> > On Tue, Nov 22, 2011 at 5:28 PM, Joel Barciauskas \<
> > 
> > [jbarciaus...@bluestatedigital.com](mailto:jbarciaus...@bluestatedigital.com)\> wrote:
> > 
> > > I'm getting this:
> > 
> > > # ./plugin
> > > 
> > > Exception in thread "main" java.lang.NoClassDefFoundError: /opt/  
> > > elasticsearch/lib/jline-0/9/94/jar  
> > > Caused by:  
> > > java.lang.ClassNotFoundException:  
> > > .opt.elasticsearch.lib.jline-0.9.94.jar  
> > > 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:306)  
> > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:  
> > > 301)  
> > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  
> > > Could not find the main class: /opt/elasticsearch/lib/  
> > > jline-0.9.94.jar. Program will exit.
> > 
> > > The only other result in the mailing list similar to this said to add  
> > > CDPATH="" to the script, but it's there now in 0.18.3
> > 
> > > Any thoughts?

---

<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, 3:47am UTC](https://discuss.elastic.co/t/noclassdeffound-running-bin-plugin-on-0-18-3/5943/5 "2017-07-06T03:47:48Z")

</div>


