# Building in Eclipse

**URL:** <https://discuss.elastic.co/t/building-in-eclipse/2827>\
**Category:** Elasticsearch\
**Created:** [February 23, 2010, 2:43am UTC](https://discuss.elastic.co/t/building-in-eclipse/2827 "2010-02-23T02:43:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vegas\_2](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vegas\_2](https://discuss.elastic.co/u/vegas_2)\
**Post date:** [February 23, 2010, 2:43am UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/1 "2010-02-23T02:43:36Z")

</div>

Hey,

I wanted to build elasticsearch under eclipse. I took a stab at it,  
and got things down to three errors that seemed inconsequential. What  
would be the equivalent of bin/elasticsearch -f in an eclipse  
debuggable context?

Cheers,

Alex

FWIW, here's what I did to mostly please eclipse:

Downloaded google guice 2.0 from  
[http://code.google.com/p/google-guice/wiki/Guice20](http://code.google.com/p/google-guice/wiki/Guice20)  
Downloaded jLine from  
[http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0\_9\_5.jar/download](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.jar/download)  
Downloaded Jackson from(need optional mapper package too)  
[http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
Downloaded google collections from  
[http://code.google.com/p/google-collections/downloads/list:w](http://code.google.com/p/google-collections/downloads/list:w)

Got sick of this, decided to try:  
[http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies(libs)inonefolder](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies%28libs%29inonefolder)  
Had to modify the solution a bit, and manually create build/output/  
lib

```
modified solution:
task copyToLib(dependsOn: configurations.dists.buildArtifacts,

```

type: Copy) {  
into('lib')  
from configurations.dists  
from configurations.dists.allArtifacts\*.file  
from configurations.distLib  
from configurations.distLib.allArtifacts\*.file  
}  
This appears to have gotten a lot of stuff, but looks to have  
missed testng  
among others?  
hamcrest [http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
testng [http://testng.org/doc/download.html](http://testng.org/doc/download.html)

That takes care of everything except  
Description Resource Path Location Type  
Duplicate methods named indexedValue with the parameters (T) and  
(String) are defined by the type FieldMapper  
IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
Java Problem

which seems to not matter a whit.

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [February 23, 2010, 7:50am UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/2 "2010-02-23T07:50:15Z")

</div>

Hi,

I am not using Eclipse but you might be interested in looking at wiki, there  
is page for intelliJIDEA setup:  
[http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code)  
May be you can find some interesting bits there.

I think you do not have to download dependencies manually. Just run gradlew  
and it will download all dependencies into ~/.gradle/cache folder. Then you  
should be able to link these into Eclipse. However, I am not saying this is  
recommended way how to setup ES in Eclipse.

As for the bin/elasticsearch -f it just calls:

# Startup Bootstrap, background it, and write the pid.

```
    exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $CLASSPATH $props

```

org.elasticsearch.bootstrap.Bootstrap \<&- &  
[! -z $pidpath] && printf "%d" $! \> $pidpath

This might be a bit cryptic but you can put print command into elasticsearch  
shell script to see what arguments are passed into  
org.elasticsearch.bootstrap.Bootstrap class.

Regards,  
Lukas

On Tue, Feb 23, 2010 at 3:43 AM, vegas [alexander.fairley@gmail.com](mailto:alexander.fairley@gmail.com) wrote:

> Hey,
> 
> I wanted to build elasticsearch under eclipse. I took a stab at it,  
> and got things down to three errors that seemed inconsequential. What  
> would be the equivalent of bin/elasticsearch -f in an eclipse  
> debuggable context?
> 
> Cheers,
> 
> Alex
> 
> FWIW, here's what I did to mostly please eclipse:
> 
> Downloaded google guice 2.0 from  
> [http://code.google.com/p/google-guice/wiki/Guice20](http://code.google.com/p/google-guice/wiki/Guice20)  
> Downloaded jLine from
> 
> [Download jline-0\_9\_5.jar (JLine - Java console input library)](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.jar/download)  
> Downloaded Jackson from(need optional mapper package too)  
> [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> Downloaded google collections from  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> 
> Got sick of this, decided to try:
> 
> [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies(libs)inonefolder](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies%28libs%29inonefolder)  
> Had to modify the solution a bit, and manually create build/output/  
> lib
> 
> modified solution:  
> task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> type: Copy) {  
> into('lib')  
> from configurations.dists  
> from configurations.dists.allArtifacts\*.file  
> from configurations.distLib  
> from configurations.distLib.allArtifacts\*.file  
> }  
> This appears to have gotten a lot of stuff, but looks to have  
> missed testng  
> among others?  
> hamcrest  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
> testng [http://testng.org/doc/download.html](http://testng.org/doc/download.html)
> 
> That takes care of everything except  
> Description Resource Path Location Type  
> Duplicate methods named indexedValue with the parameters (T) and  
> (String) are defined by the type FieldMapper  
> IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
> elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
> Java Problem
> 
> which seems to not matter a whit.

---

<div class="post-metadata">

**Author:** ![vegas\_2](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vegas\_2](https://discuss.elastic.co/u/vegas_2)\
**Post date:** [February 23, 2010, 2:23pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/3 "2010-02-23T14:23:40Z")

</div>

Awesome,  
Thanks Lukas.

On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:

> Hi,
> 
> I am not using Eclipse but you might be interested in looking at wiki, there  
> is page for intelliJIDEA setup:[http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...  
> May be you can find some interesting bits there.
> 
> I think you do not have to download dependencies manually. Just run gradlew  
> and it will download all dependencies into ~/.gradle/cache folder. Then you  
> should be able to link these into Eclipse. However, I am not saying this is  
> recommended way how to setup ES in Eclipse.
> 
> As for the bin/elasticsearch -f it just calls:
> 
> # Startup Bootstrap, background it, and write the pid.
> 
> ```
> exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $CLASSPATH $props
> 
> ```
> 
> org.elasticsearch.bootstrap.Bootstrap \<&- &  
> [! -z $pidpath] && printf "%d" $! \> $pidpath
> 
> This might be a bit cryptic but you can put print command into elasticsearch  
> shell script to see what arguments are passed into  
> org.elasticsearch.bootstrap.Bootstrap class.
> 
> Regards,  
> Lukas
> 
> On Tue, Feb 23, 2010 at 3:43 AM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> 
> > Hey,
> 
> > I wanted to build elasticsearch under eclipse. I took a stab at it,  
> > and got things down to three errors that seemed inconsequential. What  
> > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > debuggable context?
> 
> > Cheers,
> 
> > Alex
> 
> > FWIW, here's what I did to mostly please eclipse:
> 
> > Downloaded google guice 2.0 from  
> > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > Downloaded jLine from
> 
> > [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j)...  
> > Downloaded Jackson from(need optional mapper package too)  
> > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > Downloaded google collections from  
> > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> 
> > Got sick of this, decided to try:
> 
> > [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies)...  
> > Had to modify the solution a bit, and manually create build/output/  
> > lib
> 
> > modified solution:  
> > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > type: Copy) {  
> > into('lib')  
> > from configurations.dists  
> > from configurations.dists.allArtifacts\*.file  
> > from configurations.distLib  
> > from configurations.distLib.allArtifacts\*.file  
> > }  
> > This appears to have gotten a lot of stuff, but looks to have  
> > missed testng  
> > among others?  
> > hamcrest  
> > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core)...  
> > testnghttp://testng.org/doc/download.html
> 
> > That takes care of everything except  
> > Description Resource Path Location Type  
> > Duplicate methods named indexedValue with the parameters (T) and  
> > (String) are defined by the type FieldMapper  
> > IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
> > elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
> > Java Problem
> 
> > which seems to not matter a whit.

---

<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:** [February 23, 2010, 7:58pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/4 "2010-02-23T19:58:47Z")

</div>

If I would set it up using Eclipse, then I would let gradle download the  
dependencies, and then create a path variable in eclipse to point to the  
gradle repository. Running elasticsearch is simply running the Bootstrap  
main class, with the following properties: -server -Xmx1g  
-Des-foreground=yes -Djava.net.preferIPv4Stack=true.

-shay.banon

On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fairley@gmail.com](mailto:alexander.fairley@gmail.com) wrote:

> Awesome,  
> Thanks Lukas.
> 
> On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> 
> > Hi,
> > 
> > I am not using Eclipse but you might be interested in looking at wiki,  
> > there  
> > is page for intelliJIDEA setup:  
> > [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...  
> > May be you can find some interesting bits there.
> > 
> > I think you do not have to download dependencies manually. Just run  
> > gradlew  
> > and it will download all dependencies into ~/.gradle/cache folder. Then  
> > you  
> > should be able to link these into Eclipse. However, I am not saying this  
> > is  
> > recommended way how to setup ES in Eclipse.
> > 
> > As for the bin/elasticsearch -f it just calls:
> > 
> > # Startup Bootstrap, background it, and write the pid.
> > 
> > ```
> > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $CLASSPATH
> > 
> > ```
> 
> $props
> 
> > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > [! -z $pidpath] && printf "%d" $! \> $pidpath
> > 
> > This might be a bit cryptic but you can put print command into  
> > elasticsearch  
> > shell script to see what arguments are passed into  
> > org.elasticsearch.bootstrap.Bootstrap class.
> > 
> > Regards,  
> > Lukas
> > 
> > On Tue, Feb 23, 2010 at 3:43 AM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > wrote:
> > 
> > > Hey,
> > 
> > > I wanted to build elasticsearch under eclipse. I took a stab at it,  
> > > and got things down to three errors that seemed inconsequential. What  
> > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > debuggable context?
> > 
> > > Cheers,
> > 
> > > Alex
> > 
> > > FWIW, here's what I did to mostly please eclipse:
> > 
> > > Downloaded google guice 2.0 from  
> > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > Downloaded jLine from
> > 
> > > [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).  
> > > ..  
> > > Downloaded Jackson from(need optional mapper package too)  
> > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > Downloaded google collections from  
> > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> > 
> > > Got sick of this, decided to try:
> > 
> > > [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).  
> > > ..  
> > > Had to modify the solution a bit, and manually create build/output/  
> > > lib
> > 
> > > modified solution:  
> > > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > > type: Copy) {  
> > > into('lib')  
> > > from configurations.dists  
> > > from configurations.dists.allArtifacts\*.file  
> > > from configurations.distLib  
> > > from configurations.distLib.allArtifacts\*.file  
> > > }  
> > > This appears to have gotten a lot of stuff, but looks to have  
> > > missed testng  
> > > among others?  
> > > hamcrest  
> > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).  
> > > ..  
> > > testnghttp://testng.org/doc/download.html
> > 
> > > That takes care of everything except  
> > > Description Resource Path Location Type  
> > > Duplicate methods named indexedValue with the parameters (T) and  
> > > (String) are defined by the type FieldMapper  
> > > IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
> > > elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
> > > Java Problem
> > 
> > > which seems to not matter a whit.

---

<div class="post-metadata">

**Author:** ![vegas\_2](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vegas\_2](https://discuss.elastic.co/u/vegas_2)\
**Post date:** [February 23, 2010, 8:58pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/5 "2010-02-23T20:58:52Z")

</div>

Cool, thanks for the java-opts.

I noticed on bootup that I get some WARNs about net.core.rmem and  
net.core.wmem from jgroups.UDP.

I set

net.core.wmem\_max = 31457280  
net.core.rmem\_max = 1024

in sysctl.conf, which dealt with the gripes about wmem\_max, but  
rmem\_max still appears to ben capped at 1.02KB. Is there somewhere  
else I should try to configure this, or is this perhaps a property of  
my ethernet card?

Cheers,

Alex

On Feb 23, 2:58 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> If I would set it up using Eclipse, then I would let gradle download the  
> dependencies, and then create a path variable in eclipse to point to the  
> gradle repository. Running elasticsearch is simply running the Bootstrap  
> main class, with the following properties: -server -Xmx1g  
> -Des-foreground=yes -Djava.net.preferIPv4Stack=true.
> 
> -shay.banon
> 
> On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> 
> > Awesome,  
> > Thanks Lukas.
> 
> > On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > 
> > > Hi,
> 
> > > I am not using Eclipse but you might be interested in looking at wiki,  
> > > there  
> > > is page for intelliJIDEA setup:  
> > > [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...  
> > > May be you can find some interesting bits there.
> 
> > > I think you do not have to download dependencies manually. Just run  
> > > gradlew  
> > > and it will download all dependencies into ~/.gradle/cache folder. Then  
> > > you  
> > > should be able to link these into Eclipse. However, I am not saying this  
> > > is  
> > > recommended way how to setup ES in Eclipse.
> 
> > > As for the bin/elasticsearch -f it just calls:
> 
> > > # Startup Bootstrap, background it, and write the pid.
> > > 
> > > ```
> > > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $CLASSPATH
> > > 
> > > ```
> > 
> > $props
> > 
> > > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > > [! -z $pidpath] && printf "%d" $! \> $pidpath
> 
> > > This might be a bit cryptic but you can put print command into  
> > > elasticsearch  
> > > shell script to see what arguments are passed into  
> > > org.elasticsearch.bootstrap.Bootstrap class.
> 
> > > Regards,  
> > > Lukas
> 
> > > On Tue, Feb 23, 2010 at 3:43 AM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > > wrote:
> > > 
> > > > Hey,
> 
> > > > I wanted to build elasticsearch under eclipse. I took a stab at it,  
> > > > and got things down to three errors that seemed inconsequential. What  
> > > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > > debuggable context?
> 
> > > > Cheers,
> 
> > > > Alex
> 
> > > > FWIW, here's what I did to mostly please eclipse:
> 
> > > > Downloaded google guice 2.0 from  
> > > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > > Downloaded jLine from
> 
> > > > [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).  
> > > > ..  
> > > > Downloaded Jackson from(need optional mapper package too)  
> > > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > > Downloaded google collections from  
> > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> 
> > > > Got sick of this, decided to try:
> 
> > > > [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).  
> > > > ..  
> > > > Had to modify the solution a bit, and manually create build/output/  
> > > > lib
> 
> > > > modified solution:  
> > > > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > > > type: Copy) {  
> > > > into('lib')  
> > > > from configurations.dists  
> > > > from configurations.dists.allArtifacts\*.file  
> > > > from configurations.distLib  
> > > > from configurations.distLib.allArtifacts\*.file  
> > > > }  
> > > > This appears to have gotten a lot of stuff, but looks to have  
> > > > missed testng  
> > > > among others?  
> > > > hamcrest  
> > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).  
> > > > ..  
> > > > testnghttp://testng.org/doc/download.html
> 
> > > > That takes care of everything except  
> > > > Description Resource Path Location Type  
> > > > Duplicate methods named indexedValue with the parameters (T) and  
> > > > (String) are defined by the type FieldMapper  
> > > > IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
> > > > elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
> > > > Java Problem
> 
> > > > which seems to not matter a whit.

---

<div class="post-metadata">

**Author:** ![vegas\_2](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vegas\_2](https://discuss.elastic.co/u/vegas_2)\
**Post date:** [February 23, 2010, 9:11pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/6 "2010-02-23T21:11:16Z")

</div>

Also, on the topic of building in eclipse, I checked out the code from  
github, then did a ./gradle build  
This fetched most all of the dependencies into build/distributions/  
exploded/lib

Next I told eclipse to "Start New Project(from existing source)".  
For some reason TestNG and hamcrest were still missing,  
I fetched them from  
hamcrest  
[Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
testng  
[TestNG - Download Current Release and Beta Versions](http://testng.org/doc/download.html)

and was just left with the errors in FieldMapper

I used the javaopts you gave me, and now happily have an elasticsearch  
running inside of eclipse. Thanks!

Cheers,

Alex

On Feb 23, 3:58 pm, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:

> Cool, thanks for the java-opts.
> 
> I noticed on bootup that I get some WARNs about net.core.rmem and  
> net.core.wmem from jgroups.UDP.
> 
> I set
> 
> net.core.wmem\_max = 31457280  
> net.core.rmem\_max = 1024
> 
> in sysctl.conf, which dealt with the gripes about wmem\_max, but  
> rmem\_max still appears to ben capped at 1.02KB. Is there somewhere  
> else I should try to configure this, or is this perhaps a property of  
> my ethernet card?
> 
> Cheers,
> 
> Alex
> 
> On Feb 23, 2:58 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > If I would set it up using Eclipse, then I would let gradle download the  
> > dependencies, and then create a path variable in eclipse to point to the  
> > gradle repository. Running elasticsearch is simply running the Bootstrap  
> > main class, with the following properties: -server -Xmx1g  
> > -Des-foreground=yes -Djava.net.preferIPv4Stack=true.
> 
> > -shay.banon
> 
> > On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> > 
> > > Awesome,  
> > > Thanks Lukas.
> 
> > > On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > 
> > > > Hi,
> 
> > > > I am not using Eclipse but you might be interested in looking at wiki,  
> > > > there  
> > > > is page for intelliJIDEA setup:  
> > > > [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...  
> > > > May be you can find some interesting bits there.
> 
> > > > I think you do not have to download dependencies manually. Just run  
> > > > gradlew  
> > > > and it will download all dependencies into ~/.gradle/cache folder. Then  
> > > > you  
> > > > should be able to link these into Eclipse. However, I am not saying this  
> > > > is  
> > > > recommended way how to setup ES in Eclipse.
> 
> > > > As for the bin/elasticsearch -f it just calls:
> 
> > > > # Startup Bootstrap, background it, and write the pid.
> > > > 
> > > > ```
> > > > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $CLASSPATH
> > > > 
> > > > ```
> > > 
> > > $props
> > > 
> > > > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > > > [! -z $pidpath] && printf "%d" $! \> $pidpath
> 
> > > > This might be a bit cryptic but you can put print command into  
> > > > elasticsearch  
> > > > shell script to see what arguments are passed into  
> > > > org.elasticsearch.bootstrap.Bootstrap class.
> 
> > > > Regards,  
> > > > Lukas
> 
> > > > On Tue, Feb 23, 2010 at 3:43 AM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Hey,
> 
> > > > > I wanted to build elasticsearch under eclipse. I took a stab at it,  
> > > > > and got things down to three errors that seemed inconsequential. What  
> > > > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > > > debuggable context?
> 
> > > > > Cheers,
> 
> > > > > Alex
> 
> > > > > FWIW, here's what I did to mostly please eclipse:
> 
> > > > > Downloaded google guice 2.0 from  
> > > > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > > > Downloaded jLine from
> 
> > > > > [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).  
> > > > > ..  
> > > > > Downloaded Jackson from(need optional mapper package too)  
> > > > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > > > Downloaded google collections from  
> > > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> 
> > > > > Got sick of this, decided to try:
> 
> > > > > [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).  
> > > > > ..  
> > > > > Had to modify the solution a bit, and manually create build/output/  
> > > > > lib
> 
> > > > > modified solution:  
> > > > > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > > > > type: Copy) {  
> > > > > into('lib')  
> > > > > from configurations.dists  
> > > > > from configurations.dists.allArtifacts\*.file  
> > > > > from configurations.distLib  
> > > > > from configurations.distLib.allArtifacts\*.file  
> > > > > }  
> > > > > This appears to have gotten a lot of stuff, but looks to have  
> > > > > missed testng  
> > > > > among others?  
> > > > > hamcrest  
> > > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).  
> > > > > ..  
> > > > > testnghttp://testng.org/doc/download.html
> 
> > > > > That takes care of everything except  
> > > > > Description Resource Path Location Type  
> > > > > Duplicate methods named indexedValue with the parameters (T) and  
> > > > > (String) are defined by the type FieldMapper  
> > > > > IdFieldMapper.java /elasticsearch-elasticsearch-38edf96/modules/  
> > > > > elasticsearch/src/main/java/org/elasticsearch/index/mapper line 27  
> > > > > Java Problem
> 
> > > > > which seems to not matter a whit.

---

<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:** [February 23, 2010, 10:09pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/7 "2010-02-23T22:09:19Z")

</div>

What are the errors in FieldMapper that you get? Hamcrest and testng will  
also get downloaded if you simple execute "gradlew test" (its part of the  
test phase, which is not executed with the default task).

-shay.banon

On Tue, Feb 23, 2010 at 11:11 PM, vegas [alexander.fairley@gmail.com](mailto:alexander.fairley@gmail.com) wrote:

> Also, on the topic of building in eclipse, I checked out the code from  
> github, then did a ./gradle build  
> This fetched most all of the dependencies into build/distributions/  
> exploded/lib
> 
> Next I told eclipse to "Start New Project(from existing source)".  
> For some reason TestNG and hamcrest were still missing,  
> I fetched them from  
> hamcrest
> 
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
> testng  
> [TestNG - Download Current Release and Beta Versions](http://testng.org/doc/download.html)
> 
> and was just left with the errors in FieldMapper
> 
> I used the javaopts you gave me, and now happily have an elasticsearch  
> running inside of eclipse. Thanks!
> 
> Cheers,
> 
> Alex
> 
> On Feb 23, 3:58 pm, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> 
> > Cool, thanks for the java-opts.
> > 
> > I noticed on bootup that I get some WARNs about net.core.rmem and  
> > net.core.wmem from jgroups.UDP.
> > 
> > I set
> > 
> > net.core.wmem\_max = 31457280  
> > net.core.rmem\_max = 1024
> > 
> > in sysctl.conf, which dealt with the gripes about wmem\_max, but  
> > rmem\_max still appears to ben capped at 1.02KB. Is there somewhere  
> > else I should try to configure this, or is this perhaps a property of  
> > my ethernet card?
> > 
> > Cheers,
> > 
> > Alex
> > 
> > On Feb 23, 2:58 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > If I would set it up using Eclipse, then I would let gradle download  
> > > the  
> > > dependencies, and then create a path variable in eclipse to point to  
> > > the  
> > > gradle repository. Running elasticsearch is simply running the  
> > > Bootstrap  
> > > main class, with the following properties: -server -Xmx1g  
> > > -Des-foreground=yes -Djava.net.preferIPv4Stack=true.
> > 
> > > -shay.banon
> > 
> > > On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > > wrote:
> > > 
> > > > Awesome,  
> > > > Thanks Lukas.
> > 
> > > > On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > > 
> > > > > Hi,
> > 
> > > > > I am not using Eclipse but you might be interested in looking at  
> > > > > wiki,  
> > > > > there  
> > > > > is page for intelliJIDEA setup:
> 
> [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...
> 
> > > > > May be you can find some interesting bits there.
> > 
> > > > > I think you do not have to download dependencies manually. Just run  
> > > > > gradlew  
> > > > > and it will download all dependencies into ~/.gradle/cache folder.  
> > > > > Then  
> > > > > you  
> > > > > should be able to link these into Eclipse. However, I am not saying  
> > > > > this  
> > > > > is  
> > > > > recommended way how to setup ES in Eclipse.
> > 
> > > > > As for the bin/elasticsearch -f it just calls:
> > 
> > > > > # Startup Bootstrap, background it, and write the pid.
> > > > > 
> > > > > ```
> > > > > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp
> > > > > 
> > > > > ```
> 
> $CLASSPATH
> 
> > > > $props
> > > > 
> > > > > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > > > > [! -z $pidpath] && printf "%d" $! \> $pidpath
> > 
> > > > > This might be a bit cryptic but you can put print command into  
> > > > > elasticsearch  
> > > > > shell script to see what arguments are passed into  
> > > > > org.elasticsearch.bootstrap.Bootstrap class.
> > 
> > > > > Regards,  
> > > > > Lukas
> > 
> > > > > On Tue, Feb 23, 2010 at 3:43 AM, vegas \<  
> > > > > [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)\>  
> > > > > wrote:
> > > > > 
> > > > > > Hey,
> > 
> > > > > > I wanted to build elasticsearch under eclipse. I took a stab at  
> > > > > > it,  
> > > > > > and got things down to three errors that seemed inconsequential.  
> > > > > > What  
> > > > > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > > > > debuggable context?
> > 
> > > > > > Cheers,
> > 
> > > > > > Alex
> > 
> > > > > > FWIW, here's what I did to mostly please eclipse:
> > 
> > > > > > Downloaded google guice 2.0 from  
> > > > > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > > > > Downloaded jLine from
> > 
> > > > > >
> 
> [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).
> 
> > > > ..
> > > > 
> > > > > > Downloaded Jackson from(need optional mapper package too)  
> > > > > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > > > > Downloaded google collections from  
> > > > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> > 
> > > > > > Got sick of this, decided to try:
> > 
> > > > > >
> 
> [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).
> 
> > > > ..
> > > > 
> > > > > > Had to modify the solution a bit, and manually create  
> > > > > > build/output/  
> > > > > > lib
> > 
> > > > > > modified solution:  
> > > > > > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > > > > > type: Copy) {  
> > > > > > into('lib')  
> > > > > > from configurations.dists  
> > > > > > from configurations.dists.allArtifacts\*.file  
> > > > > > from configurations.distLib  
> > > > > > from configurations.distLib.allArtifacts\*.file  
> > > > > > }  
> > > > > > This appears to have gotten a lot of stuff, but looks to have  
> > > > > > missed testng  
> > > > > > among others?  
> > > > > > hamcrest
> 
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).
> 
> > > > ..
> > > > 
> > > > > > ```
> > > > > > testnghttp://testng.org/doc/download.html
> > > > > > 
> > > > > > ```
> > 
> > > > > > That takes care of everything except  
> > > > > > Description Resource Path Location Type  
> > > > > > Duplicate methods named indexedValue with the parameters (T) and  
> > > > > > (String) are defined by the type FieldMapper  
> > > > > > IdFieldMapper.java  
> > > > > > /elasticsearch-elasticsearch-38edf96/modules/  
> > > > > > elasticsearch/src/main/java/org/elasticsearch/index/mapper  
> > > > > > line 27  
> > > > > > Java Problem
> > 
> > > > > > which seems to not matter a whit.

---

<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:** [February 23, 2010, 10:09pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/8 "2010-02-23T22:09:36Z")

</div>

Can post the actual error message that you get?

On Tue, Feb 23, 2010 at 11:11 PM, vegas [alexander.fairley@gmail.com](mailto:alexander.fairley@gmail.com) wrote:

> Also, on the topic of building in eclipse, I checked out the code from  
> github, then did a ./gradle build  
> This fetched most all of the dependencies into build/distributions/  
> exploded/lib
> 
> Next I told eclipse to "Start New Project(from existing source)".  
> For some reason TestNG and hamcrest were still missing,  
> I fetched them from  
> hamcrest
> 
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
> testng  
> [TestNG - Download Current Release and Beta Versions](http://testng.org/doc/download.html)
> 
> and was just left with the errors in FieldMapper
> 
> I used the javaopts you gave me, and now happily have an elasticsearch  
> running inside of eclipse. Thanks!
> 
> Cheers,
> 
> Alex
> 
> On Feb 23, 3:58 pm, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> 
> > Cool, thanks for the java-opts.
> > 
> > I noticed on bootup that I get some WARNs about net.core.rmem and  
> > net.core.wmem from jgroups.UDP.
> > 
> > I set
> > 
> > net.core.wmem\_max = 31457280  
> > net.core.rmem\_max = 1024
> > 
> > in sysctl.conf, which dealt with the gripes about wmem\_max, but  
> > rmem\_max still appears to ben capped at 1.02KB. Is there somewhere  
> > else I should try to configure this, or is this perhaps a property of  
> > my ethernet card?
> > 
> > Cheers,
> > 
> > Alex
> > 
> > On Feb 23, 2:58 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > If I would set it up using Eclipse, then I would let gradle download  
> > > the  
> > > dependencies, and then create a path variable in eclipse to point to  
> > > the  
> > > gradle repository. Running elasticsearch is simply running the  
> > > Bootstrap  
> > > main class, with the following properties: -server -Xmx1g  
> > > -Des-foreground=yes -Djava.net.preferIPv4Stack=true.
> > 
> > > -shay.banon
> > 
> > > On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > > wrote:
> > > 
> > > > Awesome,  
> > > > Thanks Lukas.
> > 
> > > > On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > > 
> > > > > Hi,
> > 
> > > > > I am not using Eclipse but you might be interested in looking at  
> > > > > wiki,  
> > > > > there  
> > > > > is page for intelliJIDEA setup:
> 
> [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...
> 
> > > > > May be you can find some interesting bits there.
> > 
> > > > > I think you do not have to download dependencies manually. Just run  
> > > > > gradlew  
> > > > > and it will download all dependencies into ~/.gradle/cache folder.  
> > > > > Then  
> > > > > you  
> > > > > should be able to link these into Eclipse. However, I am not saying  
> > > > > this  
> > > > > is  
> > > > > recommended way how to setup ES in Eclipse.
> > 
> > > > > As for the bin/elasticsearch -f it just calls:
> > 
> > > > > # Startup Bootstrap, background it, and write the pid.
> > > > > 
> > > > > ```
> > > > > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp
> > > > > 
> > > > > ```
> 
> $CLASSPATH
> 
> > > > $props
> > > > 
> > > > > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > > > > [! -z $pidpath] && printf "%d" $! \> $pidpath
> > 
> > > > > This might be a bit cryptic but you can put print command into  
> > > > > elasticsearch  
> > > > > shell script to see what arguments are passed into  
> > > > > org.elasticsearch.bootstrap.Bootstrap class.
> > 
> > > > > Regards,  
> > > > > Lukas
> > 
> > > > > On Tue, Feb 23, 2010 at 3:43 AM, vegas \<  
> > > > > [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)\>  
> > > > > wrote:
> > > > > 
> > > > > > Hey,
> > 
> > > > > > I wanted to build elasticsearch under eclipse. I took a stab at  
> > > > > > it,  
> > > > > > and got things down to three errors that seemed inconsequential.  
> > > > > > What  
> > > > > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > > > > debuggable context?
> > 
> > > > > > Cheers,
> > 
> > > > > > Alex
> > 
> > > > > > FWIW, here's what I did to mostly please eclipse:
> > 
> > > > > > Downloaded google guice 2.0 from  
> > > > > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > > > > Downloaded jLine from
> > 
> > > > > >
> 
> [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).
> 
> > > > ..
> > > > 
> > > > > > Downloaded Jackson from(need optional mapper package too)  
> > > > > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > > > > Downloaded google collections from  
> > > > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> > 
> > > > > > Got sick of this, decided to try:
> > 
> > > > > >
> 
> [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).
> 
> > > > ..
> > > > 
> > > > > > Had to modify the solution a bit, and manually create  
> > > > > > build/output/  
> > > > > > lib
> > 
> > > > > > modified solution:  
> > > > > > task copyToLib(dependsOn: configurations.dists.buildArtifacts,  
> > > > > > type: Copy) {  
> > > > > > into('lib')  
> > > > > > from configurations.dists  
> > > > > > from configurations.dists.allArtifacts\*.file  
> > > > > > from configurations.distLib  
> > > > > > from configurations.distLib.allArtifacts\*.file  
> > > > > > }  
> > > > > > This appears to have gotten a lot of stuff, but looks to have  
> > > > > > missed testng  
> > > > > > among others?  
> > > > > > hamcrest
> 
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).
> 
> > > > ..
> > > > 
> > > > > > ```
> > > > > > testnghttp://testng.org/doc/download.html
> > > > > > 
> > > > > > ```
> > 
> > > > > > That takes care of everything except  
> > > > > > Description Resource Path Location Type  
> > > > > > Duplicate methods named indexedValue with the parameters (T) and  
> > > > > > (String) are defined by the type FieldMapper  
> > > > > > IdFieldMapper.java  
> > > > > > /elasticsearch-elasticsearch-38edf96/modules/  
> > > > > > elasticsearch/src/main/java/org/elasticsearch/index/mapper  
> > > > > > line 27  
> > > > > > Java Problem
> > 
> > > > > > which seems to not matter a whit.

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [February 23, 2010, 10:26pm UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/9 "2010-02-23T22:26:22Z")

</div>

Good hint! I updated wiki regarding test dependencies..

On Tue, Feb 23, 2010 at 11:09 PM, Shay Banon  
[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> What are the errors in FieldMapper that you get? Hamcrest and testng will  
> also get downloaded if you simple execute "gradlew test" (its part of the  
> test phase, which is not executed with the default task).
> 
> -shay.banon
> 
> On Tue, Feb 23, 2010 at 11:11 PM, vegas [alexander.fairley@gmail.com](mailto:alexander.fairley@gmail.com)wrote:
> 
> > Also, on the topic of building in eclipse, I checked out the code from  
> > github, then did a ./gradle build  
> > This fetched most all of the dependencies into build/distributions/  
> > exploded/lib
> > 
> > Next I told eclipse to "Start New Project(from existing source)".  
> > For some reason TestNG and hamcrest were still missing,  
> > I fetched them from  
> > hamcrest
> > 
> > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core-1.1.jar&can=2&q=)  
> > testng  
> > [TestNG - Download Current Release and Beta Versions](http://testng.org/doc/download.html)
> > 
> > and was just left with the errors in FieldMapper
> > 
> > I used the javaopts you gave me, and now happily have an elasticsearch  
> > running inside of eclipse. Thanks!
> > 
> > Cheers,
> > 
> > Alex
> > 
> > On Feb 23, 3:58 pm, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com) wrote:
> > 
> > > Cool, thanks for the java-opts.
> > > 
> > > I noticed on bootup that I get some WARNs about net.core.rmem and  
> > > net.core.wmem from jgroups.UDP.
> > > 
> > > I set
> > > 
> > > net.core.wmem\_max = 31457280  
> > > net.core.rmem\_max = 1024
> > > 
> > > in sysctl.conf, which dealt with the gripes about wmem\_max, but  
> > > rmem\_max still appears to ben capped at 1.02KB. Is there somewhere  
> > > else I should try to configure this, or is this perhaps a property of  
> > > my ethernet card?
> > > 
> > > Cheers,
> > > 
> > > Alex
> > > 
> > > On Feb 23, 2:58 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > If I would set it up using Eclipse, then I would let gradle download  
> > > > the  
> > > > dependencies, and then create a path variable in eclipse to point to  
> > > > the  
> > > > gradle repository. Running elasticsearch is simply running the  
> > > > Bootstrap  
> > > > main class, with the following properties: -server -Xmx1g  
> > > > -Des-foreground=yes -Djava.net.preferIPv4Stack=true.
> > > 
> > > > -shay.banon
> > > 
> > > > On Tue, Feb 23, 2010 at 4:23 PM, vegas [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Awesome,  
> > > > > Thanks Lukas.
> > > 
> > > > > On Feb 23, 2:50 am, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > > > 
> > > > > > Hi,
> > > 
> > > > > > I am not using Eclipse but you might be interested in looking at  
> > > > > > wiki,  
> > > > > > there  
> > > > > > is page for intelliJIDEA setup:
> > 
> > [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-wi)...
> > 
> > > > > > May be you can find some interesting bits there.
> > > 
> > > > > > I think you do not have to download dependencies manually. Just  
> > > > > > run  
> > > > > > gradlew  
> > > > > > and it will download all dependencies into ~/.gradle/cache folder.  
> > > > > > Then  
> > > > > > you  
> > > > > > should be able to link these into Eclipse. However, I am not  
> > > > > > saying this  
> > > > > > is  
> > > > > > recommended way how to setup ES in Eclipse.
> > > 
> > > > > > As for the bin/elasticsearch -f it just calls:
> > > 
> > > > > > # Startup Bootstrap, background it, and write the pid.
> > > > > > 
> > > > > > ```
> > > > > > exec $JAVA $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp
> > > > > > 
> > > > > > ```
> > 
> > $CLASSPATH
> > 
> > > > > $props
> > > > > 
> > > > > > org.elasticsearch.bootstrap.Bootstrap \<&- &  
> > > > > > [! -z $pidpath] && printf "%d" $! \> $pidpath
> > > 
> > > > > > This might be a bit cryptic but you can put print command into  
> > > > > > elasticsearch  
> > > > > > shell script to see what arguments are passed into  
> > > > > > org.elasticsearch.bootstrap.Bootstrap class.
> > > 
> > > > > > Regards,  
> > > > > > Lukas
> > > 
> > > > > > On Tue, Feb 23, 2010 at 3:43 AM, vegas \<  
> > > > > > [alexander.fair...@gmail.com](mailto:alexander.fair...@gmail.com)\>  
> > > > > > wrote:
> > > > > > 
> > > > > > > Hey,
> > > 
> > > > > > > I wanted to build elasticsearch under eclipse. I took a stab at  
> > > > > > > it,  
> > > > > > > and got things down to three errors that seemed inconsequential.  
> > > > > > > What  
> > > > > > > would be the equivalent of bin/elasticsearch -f in an eclipse  
> > > > > > > debuggable context?
> > > 
> > > > > > > Cheers,
> > > 
> > > > > > > Alex
> > > 
> > > > > > > FWIW, here's what I did to mostly please eclipse:
> > > 
> > > > > > > Downloaded google guice 2.0 from  
> > > > > > > [GitHub - google/guice: Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.](http://code.google.com/p/google-guice/wiki/Guice20)  
> > > > > > > Downloaded jLine from
> > > 
> > > > > > >
> > 
> > [JLine - Java console input library - Browse Files at SourceForge.net](http://sourceforge.net/projects/jline/files/jline/0.9.5/jline-0_9_5.j).
> > 
> > > > > ..
> > > > > 
> > > > > > > Downloaded Jackson from(need optional mapper package too)  
> > > > > > > [http://wiki.fasterxml.com/JacksonDownload](http://wiki.fasterxml.com/JacksonDownload)  
> > > > > > > Downloaded google collections from  
> > > > > > > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/google-collections/downloads/list:w)
> > > 
> > > > > > > Got sick of this, decided to try:
> > > 
> > > > > > >
> > 
> > [http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies](http://gradle.codehaus.org/Cookbook#Cookbook-Gatheringalldependencies).
> > 
> > > > > ..
> > > > > 
> > > > > > > Had to modify the solution a bit, and manually create  
> > > > > > > build/output/  
> > > > > > > lib
> > > 
> > > > > > > modified solution:  
> > > > > > > task copyToLib(dependsOn:  
> > > > > > > configurations.dists.buildArtifacts,  
> > > > > > > type: Copy) {  
> > > > > > > into('lib')  
> > > > > > > from configurations.dists  
> > > > > > > from configurations.dists.allArtifacts\*.file  
> > > > > > > from configurations.distLib  
> > > > > > > from configurations.distLib.allArtifacts\*.file  
> > > > > > > }  
> > > > > > > This appears to have gotten a lot of stuff, but looks to have  
> > > > > > > missed testng  
> > > > > > > among others?  
> > > > > > > hamcrest
> > 
> > [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/hamcrest/downloads/detail?name=hamcrest-core).
> > 
> > > > > ..
> > > > > 
> > > > > > > ```
> > > > > > > testnghttp://testng.org/doc/download.html
> > > > > > > 
> > > > > > > ```
> > > 
> > > > > > > That takes care of everything except  
> > > > > > > Description Resource Path Location Type  
> > > > > > > Duplicate methods named indexedValue with the parameters (T) and  
> > > > > > > (String) are defined by the type FieldMapper  
> > > > > > > IdFieldMapper.java  
> > > > > > > /elasticsearch-elasticsearch-38edf96/modules/  
> > > > > > > elasticsearch/src/main/java/org/elasticsearch/index/mapper  
> > > > > > > line 27  
> > > > > > > Java Problem
> > > 
> > > > > > > which seems to not matter a whit.

---

<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, 4:25am UTC](https://discuss.elastic.co/t/building-in-eclipse/2827/10 "2017-07-06T04:25:34Z")

</div>


