当前位置:网站首页>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截取到最前面。
边栏推荐
- 凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
- Practice and principle of PostgreSQL join
- 好用app推荐:扫描二维码、扫描条形码并查看历史
- Li Kou 98: verify binary search tree
- [Yugong series] go teaching course 003-ide installation and basic use in July 2022
- Scala下载和配置
- 不同环境相同配置项的内容如何diff差异?
- Force buckle 3_ 383. Ransom letter
- Locust performance test - environment construction and use
- 10 schemes to ensure interface data security
猜你喜欢
It is said that software testing is very simple, but why are there so many dissuasions?
Locust性能测试 —— 环境搭建及使用
Use blocconsumer to build responsive components and monitor status at the same time
Naacl-22 | introduce the setting of migration learning on the prompt based text generation task
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
Domestic database chaos
Concurrent optimization summary
Logo special training camp section II collocation relationship between words and graphics
Google Earth Engine(GEE)——基于 MCD64A1 的 GlobFire 日常火灾数据集
More than 30 institutions jointly launched the digital collection industry initiative. How will it move forward in the future?
随机推荐
It is said that software testing is very simple, but why are there so many dissuasions?
LOGO特训营 第二节 文字与图形的搭配关系
Naacl-22 | introduce the setting of migration learning on the prompt based text generation task
BigFilter全局交易防重组件的介绍与应用
醒悟的日子,我是怎么一步一步走向软件测试的道路
UML图记忆技巧
微服务--开篇
Introduction and application of bigfilter global transaction anti duplication component
The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展
Apachecn translation, proofreading, note sorting activity progress announcement 2022.7
Logo special training camp section III initial creative techniques
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
SPSS installation and activation tutorial (including network disk link)
好用app推荐:扫描二维码、扫描条形码并查看历史
NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元
With this PDF, we finally got offers from eight major manufacturers, including Alibaba, bytek and Baidu
卷积神经网络模型之——LeNet网络结构与代码实现
Test will: bug classification and promotion solution
Play with grpc - go deep into concepts and principles
机器人相关课程考核材料归档实施细则2022版本