I'm trying to import a github project into eclipse https://github.com/KolakCC/lol-jclient, but I end up with a bunch of errors because it can't find imports to the stuff in the libs folder. How do make eclipse recognize where the libs folder is and fix the imports? thanks :)
Asked
Active
Viewed 108 times
1 Answers
1
That repo KolakCC/lol-jclient has no .classpath
and no .project
.
So you need, once imported into an Eclipse project, add the lib folder in the classpath of that project yourself.
See for instance: "FAQ How do I add an extra library to my project's classpath?", with selecting Properties > Java Build Path > Libraries
(also illustrated in "How to put a jar in classpath in Eclipse?").
Or you can add a lib directly on the build path:
(as detailed in "Eclipse: Adding all the jars from a folder in java classpath")
The OP Gratin confirms in the comments:
got it to work by adding as src folder and adding all the jar.
-
@Gratin I just added another way to add those libs to your build path. – VonC Jun 08 '14 at 06:57
-
Wait it doesn't work because if you take a look at the lib folder in that github project, they're not just jar files O.o – Gratin Jun 08 '14 at 07:01
-
@Gratin true. Add the libs (jars) that you can find, and see if that is enough. If not, you might have to compile/build the jars within the folders where there are only sources for those libs. – VonC Jun 08 '14 at 07:06
-
thanks got it to work by adding as src folder and adding all the jars :) – Gratin Jun 08 '14 at 07:17
-
@Gratin great. I have included your conclusion in the answer for more visibility. – VonC Jun 08 '14 at 07:19