I got a .jar file that I need to import into Eclipse. However, I do not want to have a jar as a reference library. I need the .jar to be included as a βnormalβ project with packages (!) And .java files.
I tried to do the following: New Java project -> Import -> General -> Archive file. In this case, when I put this jar also as a reference library, it is imported, but with .class files.
New Java project -> Import -> General -> File System. Imports .java files, but packages are lost and are normal folders. In addition, the files are somehow strange, because the βjβ in the icon looks different and no errors are noticed (no underline)
The import "Existing projects into the workspace" does not work at all, he says that there is no project. I also tried importing jar as zip after extracting it, it gives me -java files, but it destroys the packages.
Does anyone know how to import it correctly?
source share