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
ClassGraph thinks the application jars are JRE_LIB_OR_EXT_JARS #816
Comments
Thanks for the report. In every JDK release I have seen, the What is your runtime environment? |
you're assuming the existence if a jdk and not just a jre, what if for example you have just a custom built jre folder? |
Can you please suggest a robust way to detect the system |
just give the user an option to override the default behaviour, by supplying their own javahome |
Is there likely to be some reliable way to tell between a JRE and a JDK? I would want to check these variables across numerous releases, on all 3 major Java platforms, and for local install vs. system install: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html If there's a way to reliably detect JRE (maybe the string "Runtime Environment" in one of the variables?), then I can avoid assuming JRE is always contained within a JDK dir. |
hi.. when working from the IDE classGraph works fine, how in runtime my applicaiton is order like so
. -> root folder
jre -> jre folder
lib -> folder for all my jars
scripts for runnig the app.
so when running the scripts the code in SystemJarFinder the code sees the folder jre and assume my root folder is the jdk,
even though it's not, so it takes all jars in lib folder as system jars ..
perhaps you could add a setting like don't assume jdk folder above jre
The text was updated successfully, but these errors were encountered: