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

Environment variables for run configurations are not set when using host system JRE #34

Open
Derkades opened this issue May 5, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Derkades
Copy link

Derkades commented May 5, 2021

No environment variables set in this menu are visible to the application:
image

This worked on a previous install through snap. Also configuring it to replace environment variables does not remove existing env vars:
image

System.out.println(System.getenv().keySet());
[PATH, INVOCATION_ID, XAUTHORITY, LC_MEASUREMENT, LC_TELEPHONE, MANDAT....
@mbooth101
Copy link
Collaborator

Are you using the JustJ OpenJDK bundled in the app, or using a JDK from your host system?

@Derkades
Copy link
Author

Derkades commented May 5, 2021

Thanks for the response, I was using an OpenJDK installation from the host system.
When I switch to the built-in JRE:
image
image

@vijark
Copy link

vijark commented Aug 2, 2022

I have the same problem. When I use a JDK from my host system, the environment variables are not set. However, the bundled JustJ OpenJDK works fine.

@Mailaender Mailaender changed the title Environment variables for run configurations are not set Environment variables for run configurations are not set when using host system JRE Dec 12, 2023
@Mailaender Mailaender added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants