简体   繁体   English

终端命令在PhpStorm中不起作用

[英]Terminal command does not work in PhpStorm

When I try to use the command java in the PHPStrom Terminal. 当我尝试在PHPStrom Terminal中使用命令java时。 I got this error : 我收到此错误:

'java' is not recognized as an internal or external command 无法将“ java”识别为内部或外部命令

But I checked I added in PATH the environment variable and it works perfectly on a terminal outside PhpStorm. 但是我检查了是否在PATH中添加了环境变量,并且该变量在PhpStorm外部的终端上运行良好。

Why ? 为什么呢

You need to restart the Jetbrains Toolbox to update these commands in terminals. 您需要重新启动Jetbrains工具箱以更新终端中的这些命令。

  1. Close PhpStorm 关闭PhpStorm
  2. Right click on Jetbrains Toolbox and click on "exit" 右键单击“ Jetbrains工具箱”,然后单击“退出”
  3. Search jetbrains toolbox in windows to launch again 在Windows中搜索jetbrains工具箱以再次启动

And all commands work in the Phpstorm terminal. 并且所有命令都可以在Phpstorm终端中使用。

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

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