当前位置:网站首页>Unity-VScode-Emmylua配置报错解决
Unity-VScode-Emmylua配置报错解决
2022-07-04 22:17:00 【米莱虾】
VScode中用于方便编写Lua代码的一个插件Emmylua再配置环境时,可能会遇到以下的Bug

这个时候我们的环境变量配置是有问题的
Win+R打开我们的cmd命令窗口,输入java或者java-version查看

![]()
如果输入之后出现了以上这个报错,可能有两种原因:
原因1:可能是JDK装的时间比较早,导致环境中的Path(此电脑->右击属性->高级系统设置->环境变量->系统变量中的Path)中的%JAVA_HOME%\jre\bin排列比较在后。如下图:

此时我们需要把这个%JAVA_HOME%\jre\bin上移到最上面即可,下面我们再输入java或者java-version查看,就能看到类似以下的内容了

这个时候再重新启动我们的Emmylua插件,就能看到我们的全局变量变为红色的了,此时按住Ctrl同时点击鼠标左键就能跳转到我们变量所在的位置(或者选中变量再右击F12也可以实现跳转)

原因2:原先JDK原先装在C盘的,现在移动到了D盘,导致cmd报:Error: could not open `C:\Program Files\Java\jre1.8.0_121\lib\amd64\jvm.cfg’错
解决办法:在系统环境变量中先选中%JAVA_HOME%\jre\bin然后点击上移,移到顶端即可。如果不是这种界面可以把%JAVA_HOME%\jre\bin截取到最前面。
边栏推荐
- Test will: bug classification and promotion solution
- Domestic database chaos
- 国产数据库乱象
- Interview question 01.08 Zero matrix
- 繁华落尽、物是人非:个人站长该何去何从
- 将QA引入软件开发生命周期是工程师要遵循的最佳实践
- 抖音实战~评论数量同步更新
- Shell script implements application service log warehousing MySQL
- The table is backed up in ODPs. Why check m in the metabase_ Table, the logical sizes of the two tables are inconsistent, but the number of
- The use of complex numbers in number theory and geometry - Cao Zexian
猜你喜欢

LOGO特訓營 第三節 首字母創意手法

质量体系建设之路的分分合合

Huawei Nova 10 series released Huawei application market to build a solid application security firewall

LOGO特訓營 第一節 鑒別Logo與Logo設計思路
![[acwing] solution of the 58th weekly match](/img/e3/fd2c0ffbc9c7ca8a71875882d6c71b.png)
[acwing] solution of the 58th weekly match

Logo special training camp Section IV importance of font design

抖音实战~评论数量同步更新

Concurrent optimization summary

Convolutional neural network model -- lenet network structure and code implementation

Scala download and configuration
随机推荐
Locust performance test - environment construction and use
Interview essential leetcode linked list algorithm question summary, whole process dry goods!
如何实现轻松管理1500万员工?
BigFilter全局交易防重组件的介绍与应用
将QA引入软件开发生命周期是工程师要遵循的最佳实践
10 schemes to ensure interface data security
More than 30 institutions jointly launched the digital collection industry initiative. How will it move forward in the future?
How to transfer to software testing, one of the high paying jobs in the Internet? (software testing learning roadmap attached)
Force buckle 3_ 383. Ransom letter
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
Kdd2022 | what features are effective for interaction?
Convolutional neural network model -- lenet network structure and code implementation
【Acwing】第58场周赛 题解
Common open source codeless testing tools
PHP short video source code, thumb animation will float when you like it
Common shortcut keys for hbuilder x
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
Force buckle 2_ 1480. Dynamic sum of one-dimensional array
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
30余家机构联合发起数字藏品行业倡议,未来会如何前进?