Reputation: 61
So I'm trying to use a GrovePi open library in my project to use the LEDs on my GrovePi. Currently the specific class that lets me access the LEDs is stored at import com.dexterind.grovepi.sensors.Led;
Now that I try to import the specific class I get an error where Eclipse doesn't recognize com.dexterind
. I believe it's because it's not in my project and it's scope isn't to find packages outside my source folders and the jars in my build path. I know I have to change some config file in the project folder but I can't seem to find it.
Also, getting a Jar doesn't seem to be an option as I only want that one class. Any help would be appreciated!
Upvotes: 0
Views: 604
Reputation: 79
Eclipse have the option to add external class folder into your buildpath, but using this option you could have some issues with dependencies that the class would have. I think the best solution is import the jar.
Upvotes: 1