sbt update时未检测到Java安装 [英] No Java installation was detected while sbt update

查看:397
本文介绍了sbt update时未检测到Java安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您正试图在cygwin中运行sbt update comand并且我收到错误没有检测到java安装,即使很难安装java。

Hi was trying to run sbt update comand in cygwin and i get the error "No java installation was detected" even tough i have java installed .

我的java in出现在C:\ Program Files \ Java

My java in present in C:\Program Files\Java

我的sbt安装在C:\Program Files(x86)\sbt

My sbt is installed in C:\Program Files(x86)\sbt

我在StackOverflow中发现了一个类似的问题,但我无法解决它。

I found one similar question over here in StackOverflow but i couldnt resolve it.

任何帮助?

谢谢,
Vishesh

Thanks , Vishesh

推荐答案

按照以下步骤操作:


  • 转到控制面板

  • 选择系统图标

  • 在左栏中选择高级系统设置

  • 在选项卡中选择高级然后环境变量...

  • 在下半部分单击新建并设置

  • Go to the Control Panel
  • Select the System icon
  • In the left column select Advanced System Settings
  • In the tabs select Advanced and then Environmental Variables...
  • In the lower part click New and set

变量名称: JAVA_HOME
变量值: C:\ Pro gram Files \ Java \< JAVA_FOLDER>

更改< JAVA_FOLDER> 与你正在使用的那个

Change the <JAVA_FOLDER> with the one you're using

这篇关于sbt update时未检测到Java安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆