Open seralekseenko opened 3 years ago
Hi @seralekseenko, I can't reproduce this in any way and suspect that it might have been due to a connectivity issue to the database in some way or other. The template for listing the java candidate versions is generated on the serverside. If you are still seeing this now, please let me know. Else do you mind closing this issue?
Thanks for the answer. You pushed me to check the firewall settings. :)
But this problem is still there. Most interestingly, there is no such problem with other packages. Here's an example:
$ sdk ls scala
================================================================================
Available Scala Versions
================================================================================
2.13.3 2.12.1
2.13.2 2.12.0
2.13.1 2.11.12
2.13.0 2.11.11
2.12.12 2.11.8
2.12.11 2.11.7
2.12.10 2.11.6
2.12.9 2.11.5
2.12.8 2.11.4
2.12.7 2.11.3
2.12.6 2.11.2
2.12.5 2.11.1
2.12.4 2.11.0
2.12.3
2.12.2
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
or:
$ sdk list maven
================================================================================
Available Maven Versions
================================================================================
3.6.3
3.6.2
3.6.1
3.6.0
3.5.4
3.5.3
3.5.2
3.5.0
3.3.9
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
But I was able to find java in the general list:
$ sdk ls
================================================================================
Available Candidates
================================================================================
q-quit /-search down
j-down ?-search up
k-up h-help
--------------------------------------------------------------------------------
#Other packages.
--------------------------------------------------------------------------------
Java (11.0.8.hs-adpt) https://zulu.org/
Java Platform, Standard Edition (or Java SE) is a widely used platform for
development and deployment of portable code for desktop and server environments.
Java SE uses the object-oriented Java programming language. It is part of the
Java software-platform family. Java SE defines a wide range of general-purpose
APIs – such as Java APIs for the Java Class Library – and also includes the Java
Language Specification and the Java Virtual Machine Specification.
$ sdk install java
--------------------------------------------------------------------------------
Other packages.
--------------------------------------------------------------------------------
On Ubuntu 20.04, I don't see such problems. Is there a way to fix this problem myself on Windows?
Can confirm same on Raspberry Pi
@seralekseenko I did a lot of work to improve platform detection late last year. Are you able to confirm that Java is now available for download on Windows 10?
@Seggan if you are still seeing this on Raspberry Pi, please raise a new issue as it is unrelated to Windows 10. Please provide us with complete system specs to help us understand the problem as per the contributing guidelines.
I confirm the behaviour on Windows 10. Using Git Bash, we added curl and were able to install sdkman swiftly, but sdk list java
returns exactly the same result (empty list) while sdk list maven
gives all versions. An additional detail is that trying to install the last version listed for maven did not work:
$ sdk list maven
================================================================================
Available Maven Versions
================================================================================
3.8.1
3.6.3
[...]
$ sdk install maven 3.8.1
Stop! maven 3.8.1 is not available. Possible causes:
* 3.8.1 is an invalid version
* maven binaries are incompatible with your platform
* maven has not been released yet
Hello! I also had the same problem on Windows 10
version 21H1 OS Build 19043.1415 SDKMAN 5.13.1
I had installed sdk via git bash. Then I realized that the version of git bash was for 32 bit windows,I uninstalled it and used the 64 bit version: 2.34.1 PS: I installed the 64-bit version of git bash from winget (powershell).
winget install --id Git.Git -e --source winget
after that you can now list the java versions
after that you can now list the java versions
I did what you did. Adjusted my shell's PATH variable. Used the right git bash, but the problem persists.
$ sdk install java
Stop! java 17.0.7-tem is not available. Possible causes:
* 17.0.7-tem is an invalid version
* java binaries are incompatible with your platform
* java has not been released yet
Any ideas?
Same thing is still occurring for me. Still no way to fix this issue?
In my case, I used sdkman with Cygwin. I got message ' no version available for exotic' when execute 'sdk list java' then, I edit ~/.sdkman/var/platform change 'exotic' to 'Cygwin' and restart terminal. I can get the list of java candidates.
In my case, I used sdkman with Cygwin. I got message ' no version available for exotic' when execute 'sdk list java' then, I edit ~/.sdkman/var/platform change 'exotic' to 'Cygwin' and restart terminal. I can get the list of java candidates.
Hi @opaopa6969!
this could be a problem with the platform detection, which happens at install time.
What is your output when you execute
uname -m
and
uname -s
?
opa@DESKTOP-2RBD8AB ~
$ uname -a
CYGWIN_NT-10.0-22631 DESKTOP-2RBD8AB 3.4.10-1.x86_64 2023-11-29 12:12 UTC x86_64 Cygwin
opa@DESKTOP-2RBD8AB ~
$ uname -m
x86_64
opa@DESKTOP-2RBD8AB ~
$ uname -s
CYGWIN_NT-10.0-22631
In my case, I used sdkman with Cygwin. I got message ' no version available for exotic' when execute 'sdk list java' then, I edit ~/.sdkman/var/platform change 'exotic' to 'Cygwin' and restart terminal. I can get the list of java candidates.
it work for me
Bug report When I entered the command
sdk list java
, I got an empty list.To reproduce I installed
sdkman
according to the instructions.System info