Creating java library

This may be a dumb question, but right now I have a pretty big class that I want to use as a library. If someone can just add this jar file to their classpath. And then just do the import statement at the top, then he or she can start using this class.

Is there anything special I need to do, or can I just use the generated jar file?

+3
source share
4 answers

pretty big class

Larger classes usually don't create good libraries :)

, , , , JAR. ( ), . , , , ( , , ).

Javadoc Javadocs . API- .

+6

JAR . .

+2

, . , , , JAR ( )

Foo β†’ bar/Foo.class

+1

JAR .class " ", JAR CLASSPATH. JAR "import". /, JVM -Xms -Xmx, .

+1

Source: https://habr.com/ru/post/1740467/


All Articles