lindenb / jvarkit

Java utilities for Bioinformatics
https://jvarkit.readthedocs.io/
Other
476 stars 131 forks source link

JAVA_HOME not defined but it is #236

Open Axze-rgb opened 1 year ago

Axze-rgb commented 1 year ago

Verify

* the value of `${JAVA_HOME}`

echo $JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64

* which OS
Ubuntu 22.04.2 LTS
### Steps to reproduce

when I launch a command, I get 

[WARN][OpenJdkCompiler]JAVA_HOME is not defined [WARN][OpenJdkCompiler]JAVA_HOME is not defined WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by htsjdk.samtools.util.CloserUtil (file:/home/alessandro/Documents/MAexperiment/GATK/JVARKIT/jvarkit.jar) to method com.sun.xml.internal.stream.XMLEventReaderImpl.close() WARNING: Please consider reporting this to the maintainers of htsjdk.samtools.util.CloserUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release



However, it completes anyway. I suspect there might be an issue of dependency? Since by default, Ubuntu install Java 11 and you have compiled your jar with Java 17. 

Hope this helps (it's not really an issue for me at the moment because the command worked anyway).
lindenb commented 1 year ago

all these are just warnings. The undefined JAVA_HOME is strange but anyway, the command was completed. The "illegal reflective access operation has occurred" is a minor change in the java API I should change.