Questions tagged [moditect]

The ModiTect project aims at providing productivity tools for working with the Java 9 module system ("Jigsaw").

You can learn more about ModiTect at https://github.com/moditect/moditect.

18 questions
9
votes
1 answer

ModiTect and Jlink not finding module dependencies

I've configured ModiTect to generate module-info.javas for all my dependencies (that don't have them) and that seems to be working; but when it comes to dependencies that do have them, it's not finding them. For my own jars, I'm writing the…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
8
votes
1 answer

Distributing JavaFX Applications that use automodules

I have created a JavaFX application. It runs perfectly in my Intellij IDE. Now I want to distribute the application - i.e. I want to obtain an installer that users could download and then it would install the application for them. I found a very…
Luk
  • 1,009
  • 2
  • 15
  • 33
7
votes
1 answer

JavaFX Maven with moditect and Java 11

As per Is there a way to add maven dependencies while using the maven-jlink-plugin? Has anyone used ModiTect Maven plug-in with JavaFX in Java 11. I tried use the maven-jlink-plugin with: org.apache.maven.plugins
Mathew Dusome
  • 305
  • 3
  • 9
5
votes
0 answers

Class not found in Spring when using Java modules and jlink

I'm adding module definitions to Spring Boot to be able to jlink my project. One of the errors I encountered is: Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException:…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
4
votes
0 answers

Using Moditect to add module-info to existing maven dependencies

I am using JavaFX and have some dependencies that are not automatic modules. When trying to run mvn clean javafx:jlink I get the following error: Error: automatic module cannot be used with jlink: org.apache.commons.io from [...]` This also…
Conor Egan
  • 518
  • 1
  • 3
  • 21
4
votes
1 answer

Using ModiTect to generate module info and create runtime image

Tried to use JLink to create a runtime image, however: Error: automatic module cannot be used with JLink: graphviz.java I'm using the following library which has only automatic modules. Did some searches, and it seems that I can use ModiTect to…
4
votes
0 answers

@ComponentScan does not detect beans in a jlink'ed Java runtime image

I'm using JavaFX on Java 11 to create a desktop app. The app is bundled into a custom runtime image with all its modules and their dependencies using jlink. For dependency injection, the app relies on the Spring Framework. I'm aware that Spring…
IggyBlob
  • 372
  • 2
  • 13
2
votes
1 answer

How to bundle java image with jpackage and moditect to .app file?

I've just created a java application and created an image with moditect-jlink including the JRE. But now I'm wondering how to bundle it up to an .app file for OSX. Has anyone tried it yet? It seems like jpackage is changing continuously and…
funazol
  • 93
  • 4
2
votes
1 answer

How can I configure the moditect-maven-plugin to use the auto-value library in my modular application?

I'm trying to build a modular application, and I'm attempting to use the moditect-maven-plugin in order to use the auto-value library (which is not modular). Based on the instructions here, I came up with the following pom.xml:
gjvatsalya
  • 1,129
  • 13
  • 29
1
vote
1 answer

Using moditect to add module info to dependency without downloading the dependency

I am trying to use moditect in order to allow creating runtime image while using automated named modules (ArcGIS). ArcGIS module requires openjfx 11 (which I have added as dependency as well, since it is an JavaFX project). However, when I am trying…
1
vote
0 answers

spring with jlink, moditect and java 11

thanks to pupeno for his precedent work on spring and moditect that helped me for most of my problem on the subject, however I'm blocked a bit further that he was. my problem is the illegal access exception my poc is available on github I used to…
yboompook
  • 21
  • 5
1
vote
1 answer

What's wrong with this module definition for spring.core?

I'm trying to start using Java's new module system as well as jlink, for which I'm using the ModiTect Maven plugin. I'm creating module-info.java files for each of my dependencies that do not define them yet, so that jlink can properly do it's…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
0
votes
0 answers

Generate a installer for macos using moditect and ant

Yesterday I fixed generating runtime-image, but now when I want to generate an installer for Mac I am generate a pkg, dmg file, but the app is damaged For Windows this settings works. jpackage
Rubin
  • 1
  • 1
0
votes
0 answers

ModiTect not finding module dependency

I am trying to use moditect to build with vlcj which is not built with jlink. After the maven clean command, then maven install, I get the following error: Module uk.co.caprica.vlcj.osx.stubs not found, required by uk.co.caprica.vlcj After that I…
Dmitriy
  • 375
  • 1
  • 18
0
votes
0 answers

create-runtime-image goal failed using Moditect

I want to generate a module-info.java and create a runtime image for my java project in Windows. I'm using Moditect (https://github.com/moditect/moditect), and this is my pom.xml so far.
Jay Ren
  • 61
  • 1
  • 6
1
2