Title | Java 에서 class 파일이 있는 위치 찾기 Locate the location of the class file in Java | ||||||
Writer | 이지섭 | Write Date | Jan 14 2018 | Modify Date | Oct 20 2024 | View Count | 3740 |
Java consists of a class-based program. Sometimes you need to find out where the class loads.
This can be found in the following ways: Use the jsp file. If there is a class in the jar file, the jar file is displayed as well. <% java.net.URL clazz = null; clazz = this.getClass().getResource("/org/springframework/scheduling/quartz/JobDetailFactoryBean.class"); out.println( (clazz == null ? "null" : clazz.getFile()) + "<br/>" ); %>
[Web page referenced] | |||||||