Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Automatic module cannot be used with jlink since version > 1.3.30

Aperta
#1,138 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Start by checking the module metadata and packaging changes between OpenPDF 1.3.30 and 2.0.2, then look for project tests or build configuration covering jlink. Confirm what prevents jlink from using the newer JAR and whether a supported fix is possible; done means a documented or tested resolution for consumers using jlink. The issue names no source files or tests, so locating the relevant entry points will take project familiarity.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug cleanup good first issue

Greetings and thank you for your work.
I've got an error with the new version of OpenPDF.

Error: automatic module cannot be used with jlink: com.github.librepdf.openpdf from [...]/repository/com/github/librepdf/openpdf/2.0.2/openpdf-2.0.2.jar

It worked with version 1.3.30. Beyond that it's not working anymore.

Is it possible to fix it? Because it was very practical.
Regards.

Edit:
Okay, found a little fix but that's not great.

  • By defining static in my module-info requires static com.github.librepdf.openpdf;;
  • By adding <options>-classpath openpdf-2.0.2.jar --module-path openpdf-2.0.2.jar --add-modules com.github.librepdf.openpdf</options> for the javafx-maven-plugin in my pom (and of course the jar inside the correct directory)
Lingua principale
Java
Stelle
4.4k
Fork
714
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LibrePDF/OpenPDF

Tutte le issue di LibrePDF/OpenPDF

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.