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

[BUG]: Switch doesn't seem to work on cygwin #335

Open
koppor opened this issue Aug 4, 2024 · 0 comments
Open

[BUG]: Switch doesn't seem to work on cygwin #335

koppor opened this issue Aug 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@koppor
Copy link

koppor commented Aug 4, 2024

Version vfox version 0.5.4

OS Windows

Describe the bug

Running vfox use java@22 does not change JAVA version

$ vfox use java@22
Now using [email protected]+8-tem.
$ set | grep -i JAVA_HOME
JAVA_HOME='C:\Users\koppor\.version-fox\temp\1722722400-4468\java'
$ ls -la C:\Users\koppor\.version-fox\temp\1722722400-4468\java
ls: cannot access 'C:Userskoppor.version-foxtemp1722722400-4468java': No such file or directory

This java dir seems to be hard-coded:

$ vfox activate bash

export JAVA_HOME=$'C:\\Users\\koppor\\.version-fox\\temp\\1722722400-4468\\java';export __VFOX_SHELL=$'bash

Screenshots[optional]

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref (ai-pr-1)
$ vfox use java@22
Now using [email protected]+8-tem.

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref (ai-pr-1)
$ ./gradlew ru

> Configure project :
Project : => 'org.jabref' Java module

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: org/beryx/jlink/JlinkPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
> org/beryx/jlink/JlinkPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
2 actionable tasks: 2 up-to-date

This refs #305

@koppor koppor added the bug Something isn't working label Aug 4, 2024
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

1 participant