How do I make a Java library with Eclipse?

后端 未结 2 1783
挽巷
挽巷 2020-12-08 19:09

I\'m fairly new to Java and Android programming in general but I would like to create a small Java library for sharing some code between an ordinary (non-Android) Java appli

2条回答
  •  星月不相逢
    2020-12-08 19:43

    A Java library is basically a set of JAR files. So what you can do is generate a JAR based on your source code and add it as a external JAR to the Java build path of your Android and non-Android projects.

提交回复
热议问题