简体   繁体   English

如何在编译时和运行时类路径中找到jar文件?

[英]How find a jar file in compile-time and run-time classpath?

i encounter a java.lang.NoClassDefFoundError and i'm finding compile-time and run-time classpath,but i don't know how to find them? 我遇到java.lang.NoClassDefFoundError,正在寻找编译时和运行时的类路径,但是我不知道如何找到它们? thank you! 谢谢!

you could try to use the next line: System.out.println (System.getProperty ("java.class.path")); 您可以尝试使用下一行:System.out.println(System.getProperty(“ java.class.path”)); I hope that this could help you to find the location of the classpath 我希望这可以帮助您找到类路径的位置

Have a nice day! 祝你今天愉快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编译时VS运行时 - Compile-time VS run-time 在多线程应用程序中编译时和运行时之间类路径不匹配的原因是什么? - What is the cause for classpath mismatch between compile-time and run-time in a multi-threaded application? Java 中的编译时与运行时? - Compile-Time vs Run-Time in Java? 编译时和运行时之间的依赖注入 - Dependency injection between compile-time and run-time 静态类型是在编译时还是在运行时强制执行? - Is static typing enforced at compile-time or run-time? OOP访问修饰符:编译时或运行时 - OOP Access Modifiers: Compile-time or Run-time 方法重载和重写中的编译时和运行时绑定 - compile-time and run-time binding in method overloading and overriding 如何使用编译时泛型验证替换运行时instanceof检查 - How to replace run-time instanceof check with compile-time generics validation 如何知道它是编译时多态还是运行时多态? - How to know whether it is a compile-time polymorphism or run-time polymorphism? 什么时候在Java / Gradle中使用Run-time而不是Compile-time依赖? - When is a time to use Run-time over Compile-time dependencies in Java/Gradle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM