当前位置:网站首页>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截取到最前面。
边栏推荐
- Shell 脚本实现应用服务日志入库 Mysql
- 都说软件测试很简单有手就行,但为何仍有这么多劝退的?
- 面试必备 LeetCode 链表算法题汇总,全程干货!
- PostgreSQL server programming aggregation and grouping
- Locust性能测试 —— 环境搭建及使用
- Force buckle 2_ 1480. Dynamic sum of one-dimensional array
- Concurrent network modular reading notes transfer
- leetcode 72. Edit Distance 编辑距离(中等)
- UML diagram memory skills
- 测试必会:BUG的分类及推进解决
猜你喜欢

卷积神经网络模型之——LeNet网络结构与代码实现

SPSS安装激活教程(包含网盘链接)

The sandbox has reached a cooperation with digital Hollywood to accelerate the economic development of creators through human resource development

Locust performance test - environment construction and use

常用的开源无代码测试工具

2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import “fmt“ func main() { fmt.Pri

Use blocconsumer to build responsive components and monitor status at the same time

Embedded development: skills and tricks -- seven skills to improve the quality of embedded software code

i. Mx6ull driver development | 24 - platform based driver model lights LED

LOGO special training camp section I identification logo and Logo Design Ideas
随机推荐
Scala下载和配置
10 schemes to ensure interface data security
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
Logo special training camp section II collocation relationship between words and graphics
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
Locust performance test - environment construction and use
# 2156. Find the substring of the given hash value - post order traversal
Domestic database chaos
High school physics: linear motion
leetcode 72. Edit Distance 编辑距离(中等)
Microservices -- Opening
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
国产数据库乱象
Machine learning notes mutual information
Easy to use app recommendation: scan QR code, scan barcode and view history
Close system call analysis - Performance Optimization
Common open source codeless testing tools
LOGO special training camp section I identification logo and Logo Design Ideas
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
繁華落盡、物是人非:個人站長該何去何從