Reputation: 343
I want to use a custom library from github
(https://github.com/ddoleye/java-hwp)
How can I import it and use it?
I want to import and use the library in file_read.java file
Upvotes: 3
Views: 2511
Reputation: 77
On my end is use InteliiJ IDE and the process is quite easy when cloning a repository from Git hub
main menu, select VCS | Get from Version Control, or, if no project is currently opened, click Get from Version Control on the Welcome screen.
In the Get from Version Control dialog, specify the URL of the
remote repository you want to clone, or select one of the VCS hosting
services on the left.
If you are already logged in to the selected hosting service,
completion will suggest the list of available repositories that you
can clone.
Upvotes: -1
Reputation: 1323025
Normally, that library would have been published on maven central, but that doesn't seem to be the case here.
Instead, the GitHub repo includes directly the generated compiled classes (which is not the best practice)
That means you can clone that repo anywhere you want, and add a library to your project, with the classes and sources referencing the folder you have used to clone the repo.
Upvotes: -1