简体   繁体   中英

C++ library equivalent for Java?

What would be the equivalent of a library in C++ for Java? I have some classes I'd like to reuse as a library in multiple projects.

Thanks

Basically you build a jar file with the classes in, and then add a reference to that jar file on the classpath for both compilation and execution.

See the Oracle Jar File Tutorial for more information.

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