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 (basically PATH) #289

Open
elettrico opened this issue Dec 19, 2024 · 0 comments
Open

Environment variables (basically PATH) #289

elettrico opened this issue Dec 19, 2024 · 0 comments

Comments

@elettrico
Copy link

I have a windows 10 machine with eclipse 2024-09 and different JRE installed.
Eclipse starts with its internal JRE, but when I open a command shell via easyshell the PATH variable (and other environment variables) passed to the shell is modified by eclipse, so instead of using the JRE declared in the original PATH (and pointed by JAVA_HOME), it uses the eclipse JRE.

Expected Behavior

Uses the system/user environment variables or eventually let the user configure it in preferences

Actual Behavior

When I open a command with easyshell, it shows the eclipse modified path, which starts with: "Path=C:/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.5.v20241023-1957/jre/bin/server;C:/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.5.v20241023-1957/jre/bin;..." instead of the system/user path

Steps to Reproduce the Problem

  • Add path to a specific JRE to your PATH variable and set JAVA_HOME
  • launch a command shell
  • Using eclipse with JRE embedded, launch a command shell with easyshell
  • in the first command windows and in the window opened by easyshell, execute "java -version"
  • notice the difference
  • in the first command windows and in the window opened by easyshell, execute "set"
  • notice the difference

Your Environment

  • Plugin version: 2.3.0.v20230630-1658
  • Eclipse Version: 2024-09
  • Java Version: different
  • Operating System Version: Windows 10
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

1 participant