作者:来人把老师拖出I去毙了 | 来源:互联网 | 2023-05-18 19:17
IrecentlyupgradedtoIntelliJ14,thenaddedScalasupport.我最近升级到IntelliJ14,然后添加了Scala支持。Myma
I recently upgraded to IntelliJ 14, then added Scala support.
我最近升级到IntelliJ 14,然后添加了Scala支持。
My main files stopped running. For example the GUI file, which has no errors and is a totally self contained hello world
style for testing this error:
我的主文件停止运行。例如,GUI文件,它没有错误,是一个完全自包含的hello世界风格,用于测试此错误:
Exception in thread "main" java.lang.ClassNotFoundException: GUI
It makes no sense and I'm pretty frustrated that the IntelliJ devs are slacking in not auto-detecting a solution to this. I have tried everything to fix it. From settings, compilers, to making the project from scratch.
这没有任何意义,而且我非常沮丧的是,IntelliJ开发人员正在懈怠而不是自动检测解决方案。我已经尝试了一切来解决它。从设置,编译器到从头开始制作项目。
I only had a bit of luck when making it from scratch, but as soon as I started to add my other files (files that were not even being used!) it starts with the error.
从头开始制作它时我只有一点运气,但是一旦我开始添加我的其他文件(甚至没有被使用的文件!),它就会以错误开始。
It seems that any files outside of the original project module (when creating a new project to test fix) will not run giving ClassNotFoundException.
似乎原始项目模块之外的任何文件(在创建测试修复的新项目时)都不会运行,从而产生ClassNotFoundException。
This may be related to my other question: https://stackoverflow.com/questions/27516673/cannot-run-file-located-out-of-main-module-intellij-14-java-scala
这可能与我的另一个问题有关:https://stackoverflow.com/questions/27516673/cannot-run-file-located-out-of-main-module-intellij-14-java-scala
2 个解决方案