Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAVA_HOME not defined but it is #236

Open
Axze-rgb opened this issue Jun 23, 2023 · 1 comment
Open

JAVA_HOME not defined but it is #236

Axze-rgb opened this issue Jun 23, 2023 · 1 comment

Comments

@Axze-rgb
Copy link

Verify

Subject of the issue

Describe your issue here.
I downloaded the precompiled jar to use

Your environment

  • version of jvarkit
    e5a6a83
  • version of java
    java -version
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)

  • 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
Copy link
Owner

lindenb commented Jun 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants