Hello, I am trying to make a sketch using a library from github. Link to the library
And in the example it imports a bunch of com.github.? files. but when I try to import them, it justs says:
//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?
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
remove what you’ve inserted from github in your libraries and sketch folder.
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 .
Your solution almost works. Most of the imports dont give errors now. Just the ones that are in a auth folder.
For example:
// 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?