Questions tagged [jdeps]

The Java Dependency Analysis Tool introduced in JDK 8, which provides information on what dependencies are used in a jar.

The Java Dependency Analysis Tool introduced in JDK 8, which provides information on what dependencies are used in a jar. Using the -jdkinternals flag, it is also used for detecting JDK internal APIs (e.g. sun.*) that are unsupported.

External Links:

64 questions
27
votes
1 answer

Using jlink with automatic modules

I have an explicit modular project which is dependent on an automatic module; e.g. on java.activation. Is it still possible to use jlink? See this module-info.java: module hello { requires java.activation; } Then jlink can't add the module: $…
Jonku
  • 383
  • 3
  • 7
13
votes
1 answer

Missing dependencies when generate-module-info jdeps

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'…
10
votes
1 answer

jdeps can't print-module-deps due to a MultiReleaseException

We have a JavaFX based application which is not modularized (there are reasons, a legacy library is involved) but we build an custom runtime using jdeps and jlink. We've recently rewritten the app and added a couple of new dependencies, as well as…
dzim
  • 1,131
  • 2
  • 12
  • 28
9
votes
3 answers

How to package app at Java 11 with non-modular dependencies

I develop and distribute a Java Swing app that uses Apache Batik and JavaCV. I've updated it through java 1.6, 7 and 8. Installers for macOS, Windows and Linux are built with Javapackager. Java 8 is end of support in Jan '19 and I can't find a…
Hamish258
  • 305
  • 2
  • 9
9
votes
2 answers

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

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 ,…
optional
  • 3,260
  • 5
  • 26
  • 47
8
votes
3 answers

Jdeps Module java.annotation not found

I'm trying to create a minimal jre for Spring Boot microservices using jdeps and jlink, but I'm getting the following error when I get to the using jdeps part Exception in thread "main" java.lang.module.FindException: Module java.annotation not…
Bryan Motta
  • 131
  • 7
8
votes
1 answer

JDEPS Module Not Found Exception when listing dependancies

I have been working with JLink to create minimal JRE for various Spring Boot applications. I have successfully done this manually by figuring out the required Modules via trial and error. After successfully doing this I have been attempting to…
8
votes
2 answers

Use jdeps for module which has multi-version implementation, but root module doesn't

Not quite sure how to use jdeps to inspect module if current module has multi-version dependencies. jdeps keep asking me provide --multi-version 9 but other dependent modules is not multi-version. How to properly use jdeps for such…
8
votes
2 answers

What is the difference between Jdeps & Jdeprscan?

In Java 9 a new tool jdeprscan has been introduced, which is quite similar to the existing jdeps tool. As per my understanding jdeprscan's primary motive is to harness the usage of 'for-removal' & 'release' attributes of the Deprecated…
Curious Coder
  • 646
  • 8
  • 18
8
votes
3 answers

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

Exploring the maven-jdeps-plugin:3.1.0 with Java9 using the following minimal pom.xml:- org.apache.logging.log4j log4j-api 2.9.0
Naman
  • 27,789
  • 26
  • 218
  • 353
8
votes
2 answers

Creating custom runtime image dedicated for specific modular application

Let's say I'm developing a modular application that consists of 2 modules: com.spacey.explorer that depends on com.spacey.rocket module. I have their modular JAR files in some bin directory. And I want to prepare lightweight JRE to run it. So…
malloc4k
  • 1,742
  • 3
  • 22
  • 22
7
votes
1 answer

jdeps is failing with Concurrent Execution Exception

I am trying to get dependencies for my spring boot jar using Jdeps. Following command i am running :- jdeps --ignore-missing-deps --print-module-deps --multi-release=11 --recursive -cp BOOT-INF/lib/* x.jar but the above command is failing with…
Akash tiwari
  • 213
  • 1
  • 10
5
votes
0 answers

How to calculate list of needed java modules with jdeps?

I'm basically working with a tomcat webapp that has a complex structure, with many jars and classes at several locations and I want to generate a JRE with jlink and its --add-modules option in order to reduce the weight and attack surface of the…
Simon Campano
  • 87
  • 3
  • 11
5
votes
2 answers

EXCEPTION_ACCESS_VIOLATION after build a windows self-contained application with jdeps + jlink + jpackage

I'm trying to build a bundle (self-contained app) for windows using jdeps + jlink + jpackage. On mac, with the same procedure, I managed to create (following JPackageScriptFX as reference) a fully working self-contained ".app" for this project…
madx
  • 6,723
  • 4
  • 55
  • 59
4
votes
2 answers

jdeps returns "not found"

I'm following this tutorial which tries to minimize the JVM memory footprint by building a minimal JVM. When I'm running jdeps -s myjar.jar I'm getting: myjar.jar -> java.base myjar.jar -> java.logging myjar.jar -> not found In the tutorial he…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
1
2 3 4 5