且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Java中为外部jar文件设置类路径?

更新时间:2023-01-10 12:12:02

为什么?

为什么没有IDE?

使用Eclipse或Netbeans.两者都是免费都将指导您.两者都不会编写您的代码-但它们会在诸如此类的任务中为您提供帮助.
WHY?

WHY U NO IDE?

Use Eclipse or Netbeans. both are free Both will guide you. Both will not write your code - but they will help you during tasks like this.


jar文件本身必须位于类路径中,而不仅仅是包含它的目录中
The jar file itself must be in the classpath, and not just the directory containing it