# Building from source missing lib folder

**URL:** <https://community.gatling.io/t/building-from-source-missing-lib-folder/1928>\
**Category:** Gatling (Open-Source)\
**Created:** [January 23, 2015, 5:01pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928 "2015-01-23T17:01:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziyod\_Abdullayev](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@Ziyod\_Abdullayev](https://community.gatling.io/u/Ziyod_Abdullayev)\
**Post date:** [January 23, 2015, 5:01pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/1 "2015-01-23T17:01:44Z")

</div>

Hello,

I have pulled the latest from gatling git. When I build the project using sbt I get

sbt clean compile packageBin publishLocal

I’m getting gatling-bundle-2.2.0-SNAPSHOT.zip but the zip file is missing \lib folder with all the necessary jars.

Any suggestions

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [January 23, 2015, 5:03pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/2 "2015-01-23T17:03:51Z")

</div>

Hi,

Please follow our development guide : [http://gatling.io/docs/2.1.3/developing\_gatling/building\_gatling.html](http://gatling.io/docs/2.1.3/developing_gatling/building_gatling.html)  
It explicitly states that in order to get a working bundle, you’ll need to build both gatling then gatling-highcharts.

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Ziyod\_Abdullayev](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@Ziyod\_Abdullayev](https://community.gatling.io/u/Ziyod_Abdullayev)\
**Post date:** [January 23, 2015, 6:37pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/3 "2015-01-23T18:37:43Z")

</div>

Good day Pierre,

I have followed the instructions but the same result, the /lib folder is missing. I don’t understand why we have two separate project and how they’re integrated together during build process?  
I have compiled both of the projects gatling and gatling-highcharts and then build `sbt publishLocal publishM2` from gatling project. Which in turn creates the gatling-bundle-2.2.0-SNAPSHOT.zip

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [January 23, 2015, 6:58pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/4 "2015-01-23T18:58:08Z")

</div>

> Good day Pierre,
> 
> I have followed the instructions but the same result, the /lib folder is missing. I don’t understand why we have two separate project and how they’re integrated together during build process?

As stated in the documentation, the projects are split for licenses reasons.  
About the build process :

- Building _gatling_ builds and packages the necessary JARs and publish them, along with publishing a simple bundle with all the static resources.
- Building _gatling-highcharts_ builds its own JARs, and use the JARs from _gatling_ to build the full bundle.

Therefore, you’ll need to rebuild _gatling-highcharts_ every time you want to build a new bundle with all your latest changes.  
As this can be tedious when frequently doing changes, we, core Gatling developers, prefer using one of our build tools integrations, which would always use the latest locally published JARS.

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Ziyod\_Abdullayev](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@Ziyod\_Abdullayev](https://community.gatling.io/u/Ziyod_Abdullayev)\
**Post date:** [January 23, 2015, 10:14pm UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/5 "2015-01-23T22:14:12Z")

</div>

Pierre, firstly I want to thank you for such a quick response.

Looks like I’m having internal sbt problem where compiling and publishing gatling correctly places .jars files to publishLocal and publishM2. However, gatling-highcharts throws an exception where it’s unable to find file.

Running

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [January 24, 2015, 9:17am UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/6 "2015-01-24T09:17:31Z")

</div>

Not exactly sure there is anything we can do here, except upgrading sbt-native-packager (the plugin which causes the failure), hoping that it would fix your issue…

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [January 24, 2015, 9:20am UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/7 "2015-01-24T09:20:22Z")

</div>

Have you tried disabling your antivirus?

---

<div class="post-metadata">

**Author:** ![ygxbhy](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@ygxbhy](https://community.gatling.io/u/ygxbhy)\
**Post date:** [February 8, 2017, 3:27am UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/8 "2017-02-08T03:27:01Z")

</div>

I have the same problem with you,have you solved this problem?

在 2015年1月24日星期六 UTC+8上午6:14:12，Ziyod Abdullayev写道：

---

<div class="post-metadata">

**Author:** ![aidylewis](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@aidylewis](https://community.gatling.io/u/aidylewis)\
**Post date:** [February 8, 2017, 11:18am UTC](https://community.gatling.io/t/building-from-source-missing-lib-folder/1928/9 "2017-02-08T11:18:30Z")

</div>

Probably totally unrelated, but shouldn't you be using JDK 8 with \> 2.2.0 (current release 2.2.3)

And why don't you build from the below example (if using SBT) and not the downloadable bundle?  
[https://github.com/gatling/gatling-sbt-plugin-demo](https://github.com/gatling/gatling-sbt-plugin-demo)

Aidy
