Reputation: 1
I am working on a java plugin and I was wondering if anyone could help me.
I need to import a plugin that goes by the name of "LogBlock" and it has a lot of files if I compile it. So I was wondering if theres a way to import it into my eclipse workspace. (Decompile it and be able to edit it).
Sorry if this question is unclear, if you need any questions about this question answered just say so. Thanks!
Upvotes: 0
Views: 5377
Reputation: 94
The easiest and simplest way to go is to use JD-GUI. A super simple decompiler. Once decomplied there are 2 things you can do: 1 - Import the files into eclipse. This could take a LONG time depending on the files.
2 Recommended - Take the files pop them in a folder named LogBlock and then go to your root folder for eclipse. Open that, you should see all your eclipse projects there. Just drag and drop the folder named LogBlock. When you launch eclipse there will be your LogBlock Java Project. Open it up and you will see a ton of files. Organize them as you saw in JD-GUI.
If you need further help with this I could make a video and give you the link to it.
Upvotes: 3
Reputation: 571
Java Decompiler will do the trick.
From there you can import those files into Eclipse by right clicking your project, and choosing import from the options menu. You shouldn't be editing a released plugin however..
Upvotes: 0