简体   繁体   中英

Eclipse - My Own Classes in the Imports?

I have a few classes that I want to use in many applications, so my question is quite straightforward:

Q: How can I add my own classes to Eclipse (or to the JDK?) and have them easily / automatically imported like the default Java Libraries?

Thanks in advance.

您可以使用JAR实用工具打包这些classes (.class文件),然后将该.jar文件(例如sample.jar)添加到您的项目中(Properties + Java Build Path + Add External JARS).

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