# Compiling ES source

**URL:** <https://discuss.elastic.co/t/compiling-es-source/3883>\
**Category:** Elasticsearch\
**Created:** [February 4, 2011, 1:01pm UTC](https://discuss.elastic.co/t/compiling-es-source/3883 "2011-02-04T13:01:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barsk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barsk/32/13734_2.png) [@Barsk](https://discuss.elastic.co/u/Barsk)\
**Post date:** [February 4, 2011, 1:01pm UTC](https://discuss.elastic.co/t/compiling-es-source/3883/1 "2011-02-04T13:01:28Z")

</div>

Hello,

I have been trying to hook up the ES source in Eclipse IDE. But I cannot  
figure out how to create the classpath entries for the sources that have  
been transformed with respect to packages names. E.g the logging  
frameworks etc. The jarjar jar I have created and that fulfills most of  
the dependencies, but not all. I still have like 3500 errors due to  
missing classes. Where and how are those external classes "transformed"  
into org.elasticsearch? I have spent numrous hours to try figure that  
out but it eludes me...

Compiling it all with gradle works nicely, but that is not what I want  
to do as I am digging around in the code figuring out how things work  
(in order to customize some things for Swedish use).

--  
Med vÃ¤nlig hÃ¤lsning  
Kristian JÃ¶rg

Devo IT AB  
Tel: 054 - 22 14 58, 0709 - 15 83 42  
E-post: kristian.jorg@devo.se  
Webb: [http://www.devo.se](http://www.devo.se)

---

<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 4, 2011, 2:09pm UTC](https://discuss.elastic.co/t/compiling-es-source/3883/2 "2011-02-04T14:09:50Z")

</div>

Hi,

why don't you try IntelliJ IDEA instead? Its community edition should allow  
you to explore the code very easily. Check here for some older wiki page  
about how to setup the code in IDEA

> **[GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search...](https://github.com/elastic/elasticsearch)**
>
> Free and Open, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.

(may  
be this document needs to be updated).

Regards,  
Lukas

On Fri, Feb 4, 2011 at 2:01 PM, Kristian Jörg [krjg@devo.se](mailto:krjg@devo.se) wrote:

> Hello,
> 
> I have been trying to hook up the ES source in Eclipse IDE. But I cannot  
> figure out how to create the classpath entries for the sources that have  
> been transformed with respect to packages names. E.g the logging frameworks  
> etc. The jarjar jar I have created and that fulfills most of the  
> dependencies, but not all. I still have like 3500 errors due to missing  
> classes. Where and how are those external classes "transformed" into  
> org.elasticsearch? I have spent numrous hours to try figure that out but it  
> eludes me...
> 
> Compiling it all with gradle works nicely, but that is not what I want to  
> do as I am digging around in the code figuring out how things work (in order  
> to customize some things for Swedish use).
> 
> --  
> Med vänlig hälsning  
> Kristian Jörg
> 
> Devo IT AB  
> Tel: 054 - 22 14 58, 0709 - 15 83 42  
> E-post: kristian.jorg@devo.se  
> Webb: [http://www.devo.se](http://www.devo.se)

---

<div class="post-metadata">

**Author:** ![Barsk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barsk/32/13734_2.png) [@Barsk](https://discuss.elastic.co/u/Barsk)\
**Post date:** [February 8, 2011, 11:17am UTC](https://discuss.elastic.co/t/compiling-es-source/3883/3 "2011-02-08T11:17:11Z")

</div>

```
Yes, it's a way to go. Unfortunately the page you link to is down
now. I read it briefly two days ago, and has already forgotten...

I have been using Eclipse for the last 5 years or so and would
rellay not like to learn another tool though. What I need for
getting eclipse on its feet though is to create those classes with
transformed names like the logging frameworkes etc. Is there some
way to create them in a temp/build or jar file somewhere. It is a
mysteru for me where they actually hook up with the build. Is it a
gradle built-in function or is it something external? The files that
end up in the jarjar jar I have found. Where are the rest?

LukÃ¡Å¡ VlÄek skrev 2011-02-04 15:09:
<blockquote cite="mid:AANLkTi=+k6Hc6uaZQ=xH+yadA-u9cLSmP_O3111kp8B7@mail.gmail.com" type="cite">Hi,

```

why don't you try IntelliJ IDEA instead? Its community  
edition should allow you to explore the code very easily. Check  
here for some older wiki page about how to setup the code in  
IDEAÂ  
  
[https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code](https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code)Â (may  
be this document needs to be updated).

---

<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 8, 2011, 11:51am UTC](https://discuss.elastic.co/t/compiling-es-source/3883/4 "2011-02-08T11:51:21Z")

</div>

Hi,

elasticsearch page has been redesigner recently. The page can be now found  
here:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

[http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.html](http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.html)I  
haven't been using Eclipse recently so I can not answer your question in  
further detail (but I think there should be plp on ML using Eclipse),  
however, as someone who was using NetBeans, Eclipse and IDEA I can tell you  
that it is worth the time to look at IDEA 🙂

Regards,  
Lukas

On Tue, Feb 8, 2011 at 12:17 PM, Kristian Jörg [krjg@devo.se](mailto:krjg@devo.se) wrote:

> Yes, it's a way to go. Unfortunately the page you link to is down now. I  
> read it briefly two days ago, and has already forgotten...
> 
> I have been using Eclipse for the last 5 years or so and would rellay not  
> like to learn another tool though. What I need for getting eclipse on its  
> feet though is to create those classes with transformed names like the  
> logging frameworkes etc. Is there some way to create them in a temp/build or  
> jar file somewhere. It is a mysteru for me where they actually hook up with  
> the build. Is it a gradle built-in function or is it something external? The  
> files that end up in the jarjar jar I have found. Where are the rest?
> 
> Lukáš Vlček skrev 2011-02-04 15:09:
> 
> Hi,
> 
> why don't you try IntelliJ IDEA instead? Its community edition should  
> allow you to explore the code very easily. Check here for some older wiki  
> page about how to setup the code in IDEA  
> [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code) (may  
> be this document needs to be updated).

---

<div class="post-metadata">

**Author:** ![Barsk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barsk/32/13734_2.png) [@Barsk](https://discuss.elastic.co/u/Barsk)\
**Post date:** [February 8, 2011, 12:45pm UTC](https://discuss.elastic.co/t/compiling-es-source/3883/5 "2011-02-08T12:45:28Z")

</div>

```
Hi again,

and sorry for all confusion on my part. I did succed to compile
eventually on Eclipse. The "transformed" classes that I was speaking
of was just a confused interpretation of some other problem. After I
reopened the project in Eclipse and did a full rebuild I got the
code to build with no problems. So far only the main project, but
the others should be no problem. Also running ES worked fine inside
Eclipse.

Well, the one thing I miss in Eclipse is support for sub modules in
the same project, which it seems IDEA has. That may be the ONLY
thing that may force me from my beloved Eclipse. Maven support is
heavily dependent on sub modules, and the support in Eclipse to try
to cover this is clumsy at best. But it works...

I also got it running in IDEA.

Thanks for all help!

/Kristian

LukÃ¡Å¡ VlÄek skrev 2011-02-08 12:51:
<blockquote cite="mid:AANLkTi=eMQ7VHyYxMXw2V2ZgNxk9myZi9-Y3o9yQ28b=@mail.gmail.com" type="cite">Hi,

```

elasticsearch page has been redesigner recently. The page can  
be now found here:Â  
  
[http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.html](http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.html)

I haven't been using Eclipse recently so I can not answer  
your question in further detail (but I think there should be plp  
on ML using Eclipse), however, as someone who was using  
NetBeans, Eclipse and IDEA I can tell you that it is worth the  
time to look at IDEA 🙂

Regards,Lukas

On Tue, Feb 8, 2011 at 12:17 PM,  
Kristian JÃ¶rg \<[krjg@devo.se](mailto:krjg@devo.se)\>  
wrote:

> Yes, it's a way to go. Unfortunately the page you link to is down now. I read it briefly two days ago, and has already forgotten...
> 
> ```
> I have been using Eclipse for the last 5 years or so and
> would rellay not like to learn another tool though. What I
> need for getting eclipse on its feet though is to create
> those classes with transformed names like the logging
> frameworkes etc. Is there some way to create them in a
> temp/build or jar file somewhere. It is a mysteru for me
> where they actually hook up with the build. Is it a gradle
> built-in function or is it something external? The files
> that end up in the jarjar jar I have found. Where are the
> rest?
> 
> LukÃ¡Å¡ VlÄek skrev 2011-02-04 15:09:
> <blockquote type="cite">Hi,
> 
> ```
> 
> why don't you try IntelliJ IDEA instead? Its  
> community edition should allow you to explore the  
> code very easily. Check here for some older wiki  
> page about how to setup the code in IDEAÂ [https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code](https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code)Â (may
> 
> ```
> be this document needs to be updated).</blockquote>
> 
> ```

```
-- 
Med vÃ¤nlig hÃ¤lsning
Kristian JÃ¶rg

Devo IT AB
Tel: 054 - 22 14 58, 0709 - 15 83 42
E-post:[kristian.jorg@devo.se](mailto:kristian.jorg@devo.se)Webb:[http://www.devo.se](http://www.devo.se)
```

---

<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:12am UTC](https://discuss.elastic.co/t/compiling-es-source/3883/6 "2017-07-06T04:12:22Z")

</div>


