简体   繁体   English

Leiningen找不到SDK

[英]Leiningen cannot find SDK

I'm trying to install Leiningen from here https://djpowell.github.io/leiningen-win-installer/ . 我正在尝试从此处https://djpowell.github.io/leiningen-win-installer/安装Leiningen。 But it cannot find SDK. 但是找不到SDK。 If I check "Custom path" then it gives an out of range error on the next screen. 如果我选中“自定义路径”,则在下一个屏幕上会显示超出范围的错误。 Both Java and SDK are installed. Java和SDK均已安装。

that installer automates these steps (from the project page) 安装程序将自动执行这些步骤(从项目页面)

The installer makes curl.exe available so that leiningen can download and upgrade files. 安装程序使curl.exe可用,以便leiningen可以下载和升级文件。

The installer downloads and installs the latest lein.bat from github. 安装程序从github下载并安装最新的lein.bat。

lein.bat is added to your PATH variable. lein.bat已添加到您的PATH变量中。

LEIN_JAVA_CMD is set to point to your selected JDK, and the :java-cmd property is set in your user profile in profiles.clj. LEIN_JAVA_CMD设置为指向您所选的JDK,并且:java-cmd属性在profile.clj的用户配置文件中设置。

lein self-install is run to install the Leiningen JAR file. 运行lein self-install来安装Leiningen JAR文件。

The uninstaller will remove the files that were installed, together with the Leiningen self-installs and search indexes; 卸载程序将删除已安装的文件以及Leiningen的自安装和搜索索引; the environment variables that were set, and the additions to the PATH. 设置的环境变量以及PATH的附加内容。

A likely area for this to do wrong is the setting of LEIN_JAVA_CMD and the :java-cmd key in the leiningen profile.clj file. LEIN_JAVA_CMD的设置和leiningen profile.clj文件中的:java-cmd键可能导致此错误。

I'd first check: 我先检查一下:

  • the java path is correct in the value of the LEIN_JAVA_CMD environment vatiable LEIN_JAVA_CMD环境值中的Java路径正确
  • check the profiles.clj file in your home dirctory for conflicting JRE paths 检查主目录中的profiles.clj文件是否存在冲突的JRE路径
  • uninstall that installer and do it by following the instructions at https://leiningen.org/ 卸载该安装程序,并按照https://leiningen.org/上的说明进行操作

also note that Clojure only required the java runtime JRE and does not require or use the JDK. 还请注意,Clojure仅需要Java运行时JRE,而不需要或不使用JDK。 differing versions and paths between these has caused problems as well. 这些版本之间的不同版本和路径也引起了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM