In some occasion we offen need to know a Class belongs to which jar in lots of jars, for example: if we want to know org.jboss.security.SecurityAssociation refered jar under JBOSS_HOME, we all know there are quite a lot number of jars existed in JBOSS_HOME, So it's obviously impossiable to do this work manually. JarClassSearcher can help us to complete this work automatically.
Functionality:
JarClassSearcher utility can help you find a Class belongs to which jars, the jars position you should defined through JarClassSearcher.xml's 'searcher.folder' attribute, the Class name which you want to search you also need to define in JarClassSearcher.xml file. The search result can be show both Console and File(Opational).
Utility Consists:
JarClassSearcher consists of Three part:
1. Runnable lib folder(contain all jar files);
2. Configuration file(JarClassSearcher.xml) ;
3. Executable script file both Windows and Linux(run.cmd and run.sh).
the figure below has a detailed instrcution.
JarClassSearcher.xml contains three attributes:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="searcher.folder">C:\\jboss-eap-4.3\\jboss-as</entry>
<entry key="searcher.class">org.jboss.security.SecurityAssociation</entry>
<entry key="result.file">true</entry>
</properties>
searcher.folder: the jars folder
searcher.class: class name you what to search
result.file: whether save the search result to file.
How to use?
I will implement this section with the purpose of solving s problem. at the beginning I will give the problem first, in http://kylinsoong.iteye.com/blog/1019829 part two, when EJB our Client(J2SE environment) Look up Remote Service, throw a error:java.lang.NoSuchMethodError, to solve this problem we should know class 'org.jboss.security.SecurityAssociation' exists which jars first. so JarClassSearcher on his way.
1. Use a file editor tool to editor JarClassSearcher.xml to define the folder all jars exists, the class name we want to search, whether need to save to file, the belows show the jars folder is JBOSS_HOME, the class name is 'org.jboss.security.SecurityAssociation' , we need to save the result to file.
2. Start a command line, navigate to JarClassSearcher folder and execute 'run.cmd' if you are in Windows system;
3. check the result:
the result also can be found in file
the result show org.jboss.security.SecurityAssociation has been found 5 times, and position as result showed.
Supplement Claims:
JarClassSearcher.xml searcher.class attribute also support other pattern, if we want to search org.jboss.security.SecurityAssociation, we can set the searcher.class as following:
org.jboss.security.SecurityAssociation.java
org.jboss.security.SecurityAssociation.class
org/jboss/security/SecurityAssociation
org\jboss\security\SecurityAssociation
SecurityAssociation
SecurityAssociation.java
SecurityAssociation.class
no matter which formats you have set, the result is the same.
Ending
The attached file 'JarClassSearcher.rar' contain both JarClassSearcher utility and src code.
- 大小: 8.9 KB
- 大小: 8.1 KB
- 大小: 4.2 KB
- 大小: 8.9 KB
- 大小: 7.7 KB
分享到:
相关推荐
《自定义工具1:FileChangeMonitor——实时监控文件变动》 在IT行业中,开发者经常需要对文件系统进行监控,以捕获文件的创建、修改或删除等事件。这就是`FileChangeMonitor`工具的作用,它是一个定制化的实用程序...
通过运行以下命令来安装customized-json : $ npm install customized-json 要验证JSON字符串,您可以按照以下示例中的描述运行模块: const customizedJSON = require ( 'customized-json' ) const jsonString =...
2. **功能定制**:根据项目需求添加或移除特定的加密算法,例如支持更高级的加密标准,或者剔除不常用的功能以减小库的大小。 3. **安全性增强**:修复已知的OpenSSL安全漏洞,或者添加额外的安全层以提高系统的整体...
Jitsi Meet-安全,简单和可扩展的视频会议 Jitsi Meet是一个开源(Apache)WebRTC JavaScript应用程序,它使用提供高质量,和可扩展的视频会议。 在您可以在上看到Jitsi Meet的实际应用。 Jitsi Meet客户端在您的...
custom_email 使用 Excel 表格自定义电子邮件发件人使用google mail api google app engine apache poi library开发使用 ide , netbeans
一个简单的Spring Boot演示应用程序,演示了如何一起使用Spring Security,Thymeleaf,JPA,Postgres和Customized Bootstrap。 在此应用程序中,我们通过Spring Boot安装并使用了Node.js和其他节点模块,而没有运行...
Linux Device Drivers Development: Develop customized drivers for embedded Linux AZW3版(kindle格式),可以用开源软件calibre-ebook(https://calibre-ebook.com/)打开,里面的图片可以用该软件还原到原本的大...
2. **绘制视图**:自定义组件的核心在于重写`onDraw()`方法,这里我们将在Canvas上画出百分比。我们需要计算当前加载的百分比,并根据这个百分比来决定在画布上绘制多少长度的进度条。 3. **属性定义**:为了允许在...
自封装ESXi-6.7.0-20201004001-standard-customized.iso
制作日期:2019年12月26日,ESXi6.7标准版,加载了Realtek8111网卡驱动和sata控制器驱动,分卷2压缩包。SHA1: 92141996C6861C352FC68A519B4A406C467A4F63 分卷1压缩包地址: ...
Esxi 6.7 U2 RTL8125B 8168的网卡 版本 亲测OK 测试配置为:主板 华硕B560M PLUS CPU i7 11700
ESXi-6.7.0-20191204001-standard-customized-8111f.iso 补入驱动 net55-r8168 支持以下网卡 10ec:8168, 1186:4300 (Realtek RTL8111B / RTL8168B / RTL8111/RTL8168 / RTL8111C / RTL8111CP / RTL8111D(L) / RTL...
VMware-ESXi-6.5.0-Update2-13635690-H3C-customized.isoVMware-ESXi-6.5.0-Update2-13635690-H3C-customized.iso
ESXi670-201912001加网卡8168驱动 VMware-ESXi-6.7.0-8169922-realtek-RTL8168.zip VMware6.7.0-8169922 集成8168网卡驱动,PC机网卡用,网卡8168
ESXi-6.7.0-20190504001-standard-customized-8168网卡
### LabVIEW Courseware Customization for Pre-College Learners #### Introduction Traditionally, teaching programming languages at the pre-college level has emphasized the use of graphical flow ...
网卡驱动封装之离线封装,r8168网卡驱动为例net55-r8168驱动支持网卡型号(Realtek RTL8111B / RTL8168B / RTL8111/RTL8168 / RTL8111C / RTL8111CP / RTL8111D(L) / RTL8168C / RTL8111DP / RTL8111E / RTL8168E / ...
这是VMware ESXi 7.0的DellEMC自定义映像 ESXi 7.0内部版本号:16324942 戴尔版本:A03 戴尔发布日期:2020年9月28日 VMware发布日期:2020年6月23日 重要的修复/更改 ================================= ...