Installing a new API in Java for OS X

I downloaded a new api for Java that accesses excel files, but I'm not sure how to install it so that it can be imported for use in my program. Help is appreciated. Thanks

+3
source share
3 answers

You do not need to "install" it - you just need to put it in the Classpath. For example, if you use Eclipse, you can right-click on your project, select something like "build path" → "configure build path", then libraries.

+1
source

To the point: just put it in the classpath.

- , /path/to/package/root / JAR, /path/to/file.jar. . Unix, OS X, - : ( Windows ;).

, , .

plain javac , -cp, . , IDE, " " ( , ).

java .class, -cp . java -jar ( - UI- ), executabele .jar, Class-Path JAR MANIFEST.MF, JAR.

+5

, . IDE .

, , IDE , jar ( lib, maven, lib...).

+1

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


All Articles