Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个无法控制系统路径环境变量的企业系统,并且系统路径指向当前已损坏的 Java 版本。我安装了另一个版本的 Java,我想用它来运行 Ammonite shell。这可能吗?
我的 hacky 解决方案是将 ammonite 从 amm.bat 重命名为 amm-default.bat 并创建一个名为 amm.bat 的新批处理文件,它将我想要的 jre 添加到会话路径的前面:
@echo off set Path=C:\Users\bohlli\.jdks\corretto-1.8.0_292\bin;%Path% amm_default.bat
我尝试更改 ammonite 批处理脚本本身的路径,但每次尝试时,都会出现问题。