Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 Eclipse 中开发的 J2EE 项目。如何找出这个项目的类路径是什么?
如果您想在光盘中获取绝对类路径:
动物 动物 = 新动物();System.out.println(animal.getClass().getResource(""));