# Homebrew, Mac OS X - Warning about the location where JARs are installed

**URL:** <https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440>\
**Category:** Elasticsearch\
**Created:** [September 23, 2011, 9:33am UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440 "2011-09-23T09:33:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel\_Krakowiak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawel_krakowiak/32/2615_2.png) [@Pawel\_Krakowiak](https://discuss.elastic.co/u/Pawel_Krakowiak)\
**Post date:** [September 23, 2011, 9:33am UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/1 "2011-09-23T09:33:05Z")

</div>

I posted about this a day or so before the old group was closed, so it kinda  
drowned in all the other messages, I guess. I realize that the Homebrew  
package is maintained by some other people, but at the moment I am not sure  
where to post it, so here goes... When installing the ES package via  
Homebrew on Mac OS X I get the following warning:

Warning: JARs were installed to "lib".  
Installing JARs to "lib" can cause conflicts between packages.  
For Java software, it is typically better for the formula to  
install to "libexec" and then symlink or wrap binaries into "bin".  
See "activemq", "jruby", etc. for examples.

It's been like that for the last couple of months.

---

<div class="post-metadata">

**Author:** ![Lee\_Hambley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lee_hambley/32/3120_2.png) [@Lee\_Hambley](https://discuss.elastic.co/u/Lee_Hambley)\
**Post date:** [September 23, 2011, 9:38am UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/2 "2011-09-23T09:38:10Z")

</div>

Pawel,

What problem does this cause exactly? This is a pretty standard homebrew  
warning for Java packages, owing to Java assumptions Homebrew can't really  
isolate the environment, so the warning just says that.

- Lee

---

<div class="post-metadata">

**Author:** ![Pawel\_Krakowiak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawel_krakowiak/32/2615_2.png) [@Pawel\_Krakowiak](https://discuss.elastic.co/u/Pawel_Krakowiak)\
**Post date:** [September 23, 2011, 2:52pm UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/3 "2011-09-23T14:52:29Z")

</div>

It doesn't seem to cause any problems. The warning says it _may_ cause  
problems. I'm no Java developer and wouldn't know, I just saw a warning  
message and wanted to share it.

---

<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:** [September 23, 2011, 11:11pm UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/4 "2011-09-23T23:11:48Z")

</div>

Strange, I thought that we fixed it at one point in the formula. Anyone up  
to looking at the suggested reference formulas and see if we can copy over  
what they do to be a better brew citizen?

2011/9/23 Paweł Krakowiak [pawel.krakowiak@gmail.com](mailto:pawel.krakowiak@gmail.com)

> It doesn't seem to cause any problems. The warning says it _may_ cause  
> problems. I'm no Java developer and wouldn't know, I just saw a warning  
> message and wanted to share it.

---

<div class="post-metadata">

**Author:** ![karmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karmi/32/44951_2.png) [@karmi](https://discuss.elastic.co/u/karmi)\
**Post date:** [September 24, 2011, 5:39am UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/5 "2011-09-24T05:39:38Z")

</div>

I remember that from the time I got involved with the formula, it  
already spilled the warnings. I can't see any fixes when I quickly  
check out the diffs of ([Commits · Homebrew/legacy-homebrew · GitHub](https://github.com/mxcl/homebrew/commits/)  
master/Library/Formula/elasticsearch.rb)...

I remember checking out AMQP formula to get a sense what should be  
done, but it was somehow unclear. Will check it out again. Seems like  
ActiveMQ is doing:

libexec.install Dir['\*']

and we're doing:

prefix.install Dir['\*']

Karel.

On Sep 24, 1:11 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Strange, I thought that we fixed it at one point in the formula. Anyone up  
> to looking at the suggested reference formulas and see if we can copy over  
> what they do to be a better brew citizen?
> 
> 2011/9/23 Paweł Krakowiak [pawel.krakow...@gmail.com](mailto:pawel.krakow...@gmail.com)
> 
> > It doesn't seem to cause any problems. The warning says it _may_ cause  
> > problems. I'm no Java developer and wouldn't know, I just saw a warning  
> > message and wanted to share it.

---

<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:53am UTC](https://discuss.elastic.co/t/homebrew-mac-os-x-warning-about-the-location-where-jars-are-installed/5440/6 "2017-07-06T03:53:39Z")

</div>


