Exporting usable .jar files from GitHub project

后端 未结 2 1456
我在风中等你
我在风中等你 2021-01-03 01:10

I\'m rather new to java and eclipse, and I would like to get jar files from this github project:

https://github.com/nikkiii/omegle-api-java

I\'ve tried doin

2条回答
  •  不知归路
    2021-01-03 02:02

    This is the easiest way, assuming you dowloaded the zip file containg the .java source files from github:

    1. Unzip the zip file into a folder in your Eclipse workspace, say omegle-api-java-master.
    2. In Eclipse, select New->Java Project and name it omegle-api-java-master. Eclipse will create a project from the source in your workspace, and set it up with a java builder.
    3. Import any required jars to get it to compile (for example the project page states you need https://github.com/douglascrockford/JSON-java). You can extract that in your workspace in the same way and then import it into your Omegle project by right clicking on the Omegle project, selecting Properties, going to Java Build Path, selecting the Projects tab, and clicking the Add button.
    4. Once everything is compiling, right click on the Omegle project, select Export -> Java -> JAR file, which will create your jar file for you.

提交回复
热议问题