0

I have a folder called src and somehow i have to import it in to eclipse to work with the code. This is how it comes from github:

enter image description here

I've tried to put the src folder in an existing project still cant read it. What should i do? Im not so familiar with java :/ The final jar file stuctures should look like this:

enter image description here

(its a bukkit plugin)

2 Answers 2

4

File -> Import -> Maven -> Existing Maven Projects

And point it to the root folder of the projects (the one containing the top pom.xml).

You'll need a Maven plugin for Eclipse for this.

Sign up to request clarification or add additional context in comments.

2 Comments

hmmm its worked until the server couldnt load it [02:21:47 ERROR]: Could not load 'plugins\CustomItemsAPI.jar' in folder 'plugins ' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/go ncalomb/bukkit/bkglib/bkgcommand/BKgCommand
is that an error when you start the project? it looks like your classpath is missing a jar with BKgCommand
0

In Eclipse: right click on src -> Build Path -> Use as Source Folder

Comments