简体   繁体   中英

How do I use a class from my Jar file in my IntelliJ project?

I have a jar file and I am trying to use classes from that file in other programs, and the only way I know how to do that is by copying and pasting the code, which is less than ideal.

  • If you do not use Maven or Gradle - add this jar as a Global library to an IDE in File | Project Structure | Global Libraries tab by selecting + then Java option:

在此处输入图像描述

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