GraalVm踩坑:gu install报错 Component catalog is unreachable.

预安装native-image模块,
输入命令:

gu install native-image

结果提示:

Downloading: Component catalog from www.graalvm.org
Error: Component catalog is unreachable.
Please check your connection and proxy settings. If your machine is behind a proxy, environment variables (http_proxy, https_proxy, ...) must be set appropriately.

初步推断是国内网络不畅,链接不到graalvm.org
本机启动一些科学软件
然后设置代理

set HTTP_PROXY=http://127.0.0.1:8809
gu install native-image

就能看到 已经开始下载了

Downloading: Component catalog from www.graalvm.org Processing
Component: Native Image Downloading: Component native-image: Native
Image from github.com [############## ]

我的小水管下的慢,稍等一下就好了

添加新评论