jdeps

Get ByteCode (dependency) information from .class files through Java

不想你离开。 提交于 2021-01-18 07:21:19
问题 I would like to analyse .class files and get information about which class uses which other class. jdeps is a command line tool which allows you to display some information in the console, but I would like to avoid calling an external tool and scraping the command line output. 回答1: All dependencies are recorded at a central place of a class file, the constant pool. So to efficiently process all dependencies, you need a library allowing to process the constant pool without looking at the rest

Get ByteCode (dependency) information from .class files through Java

梦想与她 提交于 2021-01-18 07:19:06
问题 I would like to analyse .class files and get information about which class uses which other class. jdeps is a command line tool which allows you to display some information in the console, but I would like to avoid calling an external tool and scraping the command line output. 回答1: All dependencies are recorded at a central place of a class file, the constant pool. So to efficiently process all dependencies, you need a library allowing to process the constant pool without looking at the rest

Get ByteCode (dependency) information from .class files through Java

旧时模样 提交于 2021-01-18 07:18:06
问题 I would like to analyse .class files and get information about which class uses which other class. jdeps is a command line tool which allows you to display some information in the console, but I would like to avoid calling an external tool and scraping the command line output. 回答1: All dependencies are recorded at a central place of a class file, the constant pool. So to efficiently process all dependencies, you need a library allowing to process the constant pool without looking at the rest

No output with jdeps when using -jdkinternals

独自空忆成欢 提交于 2020-01-03 20:46:07
问题 I am trying to use the Java Dependency Analysis Tool (jdeps). First I tried to do it with no arguments like so: jdeps myJar.jar It lists the dependencies that it uses. So far so good. org.example (myJar.jar) -> java.io -> java.lang -> java.text -> java.util [...] However, the biggest reason to use jdeps is to detect dependencies on packages that will not be accessible in Java 9 (e.g. sun.* packages). So I try to use the -jdkinternals flag, which checks for these incompatibilities. Thus my

Missing dependencies when generate-module-info jdeps

℡╲_俬逩灬. 提交于 2019-12-17 20:17:35
问题 I`m trying to run jdeps with the following command: jdeps --module-path modules --generate-module-info out com.demo.market.jar My com.demo.market.jar depends both on application modules and automatic modules. I put all dependencies in the 'modules' folder but I got an error: Error: missing dependencies com.demo.market.platform.MarketPlace -> com.demo.client.wholesale.Client not found com.demo.market.platform.MarketPlace -> com.demo.product.api.Product not found com.demo.market.platform

creating module-info for automatic modules with jdeps in java 9

北慕城南 提交于 2019-12-17 17:59:11
问题 I have 3 jar of jackson library jackson-core-2.8.10.jar jackson-annotations-2.8.0.jar jackson-databind-2.8.10.jar I created module-info.java for both core and annotation successfully and converted them to Named maodule using jdeps. for databind , I tried following command: jdeps --generate-module-info . --module-path %JAVA_HOME%\jomds;jackson.core;jackson.annotations existingmods\jackson-databind-2.8.10.jar Now following error is occuring : Missing dependence: .\jackson.databind\module-info

Error: log4j-api-2.9.0.jar is a multi-release jar file but --multi-release option is not set

醉酒当歌 提交于 2019-12-01 21:55:52
问题 Exploring the maven-jdeps-plugin:3.1.0 with Java9 using the following minimal pom.xml :- <dependencies> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.9.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>1.9</source> <target>1.9</target> </configuration> </plugin> <plugin> <groupId

Missing dependencies when generate-module-info jdeps

♀尐吖头ヾ 提交于 2019-11-29 10:02:16
I`m trying to run jdeps with the following command: jdeps --module-path modules --generate-module-info out com.demo.market.jar My com.demo.market.jar depends both on application modules and automatic modules. I put all dependencies in the 'modules' folder but I got an error: Error: missing dependencies com.demo.market.platform.MarketPlace -> com.demo.client.wholesale.Client not found com.demo.market.platform.MarketPlace -> com.demo.product.api.Product not found com.demo.market.platform.MarketPlace -> com.demo.product.laptop.Laptop not found com.demo.market.collector.ProductsCollector -> com

creating module-info for automatic modules with jdeps in java 9

Deadly 提交于 2019-11-28 07:52:33
I have 3 jar of jackson library jackson-core-2.8.10.jar jackson-annotations-2.8.0.jar jackson-databind-2.8.10.jar I created module-info.java for both core and annotation successfully and converted them to Named maodule using jdeps. for databind , I tried following command: jdeps --generate-module-info . --module-path %JAVA_HOME%\jomds;jackson.core;jackson.annotations existingmods\jackson-databind-2.8.10.jar Now following error is occuring : Missing dependence: .\jackson.databind\module-info.java not generated Error: missing dependencies com.fasterxml.jackson.databind.AnnotationIntrospector ->