# Com.github library?

**URL:** https://discourse.processing.org/t/com-github-library/37843
**Category:** Libraries
**Created:** [July 5, 2022, 10:27am UTC](https://discourse.processing.org/t/com-github-library/37843 "2022-07-05T10:27:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![remie92](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@remie92](https://discourse.processing.org/u/remie92)
#### Post date: [July 5, 2022, 10:27am UTC](https://discourse.processing.org/t/com-github-library/37843/1 "2022-07-05T10:27:33Z")

</div>

Hello, I am trying to make a sketch using a library from github.  
[Link to the library](https://github.com/GeyserMC/MCProtocolLib/)  
And in the example it imports a bunch of com.github.? files. but when I try to import them, it justs says:

```auto
//the import command
import com.github.steveice10.mc.protocol.ServerLoginHandler; 

//the error that it gives
No library found for com.github.steveice10.mc.protocol 
Libraries must be installed in a folder named 'libraries' inside the sketchbook folder (see the Preferences window).
The package “com.github” does not exist. You might be missing a library.

```

And I dont know how to fix it. I downloaded the com file and put it in the sketch folder, and in the Libraries folder in the processing sketchbook. But it didnt do anything.  
Can someone help me?

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [July 5, 2022, 11:06am UTC](https://discourse.processing.org/t/com-github-library/37843/2 "2022-07-05T11:06:23Z")

</div>

Hi @remie92,

What do you mean by:

> [@remie92](#):
>
> I downloaded the **com file** and put it in the sketch folder, and in the Libraries folder in the processing sketchbook

Did you build the library on your own or did you downloaded it from maven repo (ie. mcprotocollib-1.19-1.jar) or did you put a downloaded zip from github into you folders ?

I think the easiest way for you would be to

1. remove what you’ve inserted from github in your libraries and sketch folder.
2. download the library from [here](https://repo.opencollab.dev/artifactory/maven-releases/com/github/steveice10/mcprotocollib/1.19-1/mcprotocollib-1.19-1.jar)
3. drag and drop the downloaded jar file onto your sketch (PDE)

Cheers  
— mnse

---

<div class="post-metadata">

### Author: ![remie92](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@remie92](https://discourse.processing.org/u/remie92)
#### Post date: [July 5, 2022, 11:14am UTC](https://discourse.processing.org/t/com-github-library/37843/3 "2022-07-05T11:14:41Z")

</div>

Hello!

I just downloaded the zip from the repository, unzipped it, opened the src file and eventually found a folder called com. and when I opened it, there was a GitHub folder in there. So I though that was maybe the com.github file processing was talking about. But it didn’t work ☹ .

Thanks for the quick response!

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [July 5, 2022, 11:16am UTC](https://discourse.processing.org/t/com-github-library/37843/4 "2022-07-05T11:16:16Z")

</div>

see updates on my post above …

---

<div class="post-metadata">

### Author: ![remie92](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@remie92](https://discourse.processing.org/u/remie92)
#### Post date: [July 5, 2022, 11:21am UTC](https://discourse.processing.org/t/com-github-library/37843/5 "2022-07-05T11:21:58Z")

</div>

Hello again!

I will test your solution as soon as possible  
And thanks for your help 😊

---

<div class="post-metadata">

### Author: ![remie92](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@remie92](https://discourse.processing.org/u/remie92)
#### Post date: [July 5, 2022, 12:11pm UTC](https://discourse.processing.org/t/com-github-library/37843/6 "2022-07-05T12:11:33Z")

</div>

Hi again,

Your solution almost works. Most of the imports dont give errors now. Just the ones that are in a auth folder.  
For example:

```auto
// imports example
import com.github.steveice10.mc.auth.service.AuthenticationService;

// errors
No library found for com.github.steveice10.mc.auth.service

//also, there is a other error which doesn't look like the others
The type com.github.steveice10.mc.auth.data.GameProfile cannot be resolved. It is indirectly referenced from required .class files

```

Is there maybe a place where you can download more of those jar files that you found?

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [July 5, 2022, 12:46pm UTC](https://discourse.processing.org/t/com-github-library/37843/7 "2022-07-05T12:46:50Z")

</div>

Hi,

> [@remie92](#):
>
> `import com.github.steveice10.mc.auth.service.AuthenticationService;`

The authentication is another library ([MCAuthLib](https://nexus.pentaho.org/content/groups/omni/com/github/steveice10/mcauthlib/1.0/mcauthlib-1.0.jar))  
As far as I can see it should also resolve the GameProfile issue.

For further you have to study more _accurate_ the corresponding github pages …  
[MCProtocolLib](https://github.com/GeyserMC/MCProtocolLib/#mcprotocollib) and [MCAuthLib](https://github.com/GeyserMC/MCAuthLib#mcauthlib)  
… which all the info is included.

Cheers  
— mnse
