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

[Feature]: Symlink of current of Java should be JAVA_HOME #321

Open
koppor opened this issue Jul 3, 2024 · 2 comments
Open

[Feature]: Symlink of current of Java should be JAVA_HOME #321

koppor opened this issue Jul 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@koppor
Copy link

koppor commented Jul 3, 2024

1. Your usage scenarios?

I want to point my Java IDE (IntelliJ) to a specific JAVA_HOME directory.

´C:\Users\koppor.version-fox\cache\java\currentis a very good directory for that. However, the symlink points to the sub directorybin of the current JDK (´C:\Users\koppor.version-fox\cache\java\currentpoints toC:\Users\koppor.version-fox\cache\java\v-21.0.2+13\java-21.0.2+13\bin` in my example)

2. What is your expected outcome?

  1. ´C:\Users\koppor.version-fox\cache\java\currentpoints toC:\Users\koppor.version-fox\cache\java\v-21.0.2+13\java-21.0.2+13`
  2. The PATH has C:\Users\koppor\.version-fox\cache\java\v-21.0.2+13\java-21.0.2+13\bin (instead of without bin

This way, one can point the IDE to the path ...current... without worrying the IDE not re-evaluating JAVA_HOME environment variable when switching JDKs.

@koppor koppor added the enhancement New feature or request label Jul 3, 2024
@koppor
Copy link
Author

koppor commented Jul 3, 2024

Update: Solved by updating vfox on Windows from 0.5.2 to 0.5.4

I think, that could also solve the issue Error: could not find java.dll

C:\Users\koppor\.version-fox\cache\java\v-21.0.2+13\java-21.0.2+13\bin>java.exe
Usage: java [options] <mainclass> [args...]
           (to execute a class)
   or  java [options] -jar <jarfile> [args...]
...
C:\Users\koppor\.version-fox\temp\1719957600-73328\java\current>java
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

C:\Users\koppor\.version-fox\temp\1719957600-73328\java\current>cd C:\Users\koppor\.version-fox\cache\java\current

C:\Users\koppor\.version-fox\cache\java\current>java
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

@koppor
Copy link
Author

koppor commented Jul 3, 2024

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

No branches or pull requests

1 participant