简体   繁体   中英

How can I use custom java library (from github)

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我的系统

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.

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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM