# Amazonaws library: how to include it?

**URL:** https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419
**Category:** Libraries
**Created:** [June 9, 2022, 8:31am UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419 "2022-06-09T08:31:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Manfre](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Manfre](https://discourse.processing.org/u/Manfre)
#### Post date: [June 9, 2022, 8:31am UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419/1 "2022-06-09T08:31:24Z")

</div>

Hello. I am not a programmer but I often use Processing. Now I am trying to use the amazonaws library with very bad results. First of all I built the folder structure to store the 3 files named “aws-iot-device-sdk-java.jar”, in the only way Processing accepted it.

If I build the folder

```auto
libraries ┐
          aws-iot-device-sdk-java-1.3.10 ┐
                                         library ┐
                                                 files

```

Processing generate the following error at the starup

> The library “aws-iot-device-sdk-java-1.3.10” cannot be used. Library names must contain only basic letters and numbers. (ASCII only and no spaces, and it cannot start with a number)

but if I don’t create the last folder “library” the startup is ok.

Now I start to write the program, but the line

```auto
import com.amazonaws.services.iot.client.*;

```

generate the errors

> No library found for com.amazonaws.services.iot.client

and

> Libraries must be installed in a folder named ‘libraries’ inside the sketchbook folder (see the Preferences window).  
> The package “com.amazonaws.services” does not exist. You might be missing a library.

Someone have a suggestion?  
Thank you very much

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 9, 2022, 2:17pm UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419/2 "2022-06-09T14:17:48Z")

</div>

> [@Manfre](#):
>
> Someone have a suggestion?

> [@Including shared pde files across projects](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701/25):
>
> “Sketchbook/”: +---libraries | \---Palette | \---library | Palette.jar | \---PaletteJarSketch PaletteJarSketch.pde "Sketchbook"/libraries/Palette/library/Palette.jar "Sketchbook"/PaletteJarSketch/PaletteJarSketch.pde

> [@Including shared pde files across projects](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701/20):
>
> Not according to the article for installing libraries in Processing: no_entry[https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) The top folder of a library must have the same name as the .jar file located inside a library’s library folder (minus the .jar extension): Therefore, we’re free to choose whatever name to the “.jar” file, as long as we use that same name for its top folder. face_with_monocle My “.jar” file was named as: “Palette.jar”. So in o…

---

<div class="post-metadata">

### Author: ![Manfre](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Manfre](https://discourse.processing.org/u/Manfre)
#### Post date: [June 10, 2022, 9:57am UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419/3 "2022-06-10T09:57:32Z")

</div>

Thanks GoToLoop for the tip, but that’s exactly what I do. 3 files have the name

```auto
aws-iot-device-sdk-java-1.3.10.jar
aws-iot-device-sdk-java-1.3.10-javadoc.jar
aws-iot-device-sdk-java-1.3.10-sources.jar

```

and the folder is

```auto
processing/libraries/aws-iot-device-sdk-java-1.3.10/libary

```

so I think it’s correct.  
To make sure the file and folder names were the same, I copied and pasted the same name to everything.  
For now I have placed the files in the “code” folder within the project.

P.S.  
I also use the commons-net-3.8.0 library: the structure is completely different, but it works.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 10, 2022, 11:09am UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419/4 "2022-06-10T11:09:01Z")

</div>

> [@Manfre](#):
>
> `processing/libraries/aws-iot-device-sdk-java-1.3.10/libary`

I hope your subfolder is named “library” and not “libary”.

Maybe the “-1.3.10” part could confuse Processing and should be removed:  
“aws-iot-device-sdk-java-1.3.10” → “aws-iot-device-sdk-java”

This below should be your tree folder structure:

```auto
+---"Sketchbook's path"/libraries
| \---aws-iot-device-sdk-java
| \---library
| aws-iot-device-sdk-java.jar
| "other dependencies".jar

```

---

<div class="post-metadata">

### Author: ![Manfre](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Manfre](https://discourse.processing.org/u/Manfre)
#### Post date: [June 17, 2022, 12:56pm UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419/5 "2022-06-17T12:56:47Z")

</div>

Hi GoToLoop  
The folder name is correct: I typed it wrong on the keyboard. I solved the problem with importing files using the “sketch” option from the menu. Others way don’t function.  
Thank you
