简体   繁体   English

我在 IntelliJ 上遇到一个错误,提示无法创建带有奇怪错误消息的类

[英]I've been getting an error on IntelliJ saying Cannot Create Class with an odd Error message

在此处输入图片说明 阿瓦

I've deleted and redone this a bunch of times and I can't create a simple class.我已经删除并重做了很多次,但我无法创建一个简单的类。 If I set the src folder the root folder and run the Test.java it works, however it doesn't show the blue "C" icon and shows that rectangular "J" Icon for Test.java如果我将 src 文件夹设置为根文件夹并运行 Test.java 它可以工作,但是它不会显示蓝色的“C”图标并显示用于 Test.java 的矩形“J”图标

How do I fix this?我该如何解决?

The source roots are not configured correctly.源根目录配置不正确。 Only src directory needs to be configured as the source root, not the root directory of your project.只需要将src目录配置为源根目录,而不是你项目的根目录。

See the related questions:查看相关问题:

暂无
暂无

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

相关问题 rto创建类ByteBuffer的实例,但提示“无法实例化ByteBuffer类型”错误 - rto create an instance of class ByteBuffer but getting error saying "cannot instantiate type ByteBuffer 错误消息,指出已超出阵列 - Error message saying that the array has been exceeded 我不断收到错误消息说找不到符号-可变键盘 - I keep getting a error saying cannot find symbol - variable keyboard 我在我的 Postman 中遇到了这个错误(POST 和 DELETE 出现了这个错误),希望有人能解决这个问题 - I've been getting this error in my Postman (POST and DELETE come out with this error), hoping someone could resolve this 收到错误说类未与命名查询映射 - Getting error saying class not mapped with named query 我一直收到错误,说 D1D 尚未定义? - I keep getting an error, saying that D1D has not been defined? 我一直在试图弄清楚如何纠正这个错误,但我似乎无处可去 - I've been trying to figure out how to correct this error and i can't seem to be getting anywhere 我不断收到有关 IntelliJ 中 ActiveJDBC 检测的错误消息 - I keep getting an error message about Instrumentation for ActiveJDBC in IntelliJ 我遇到了消息“没有方法签名:..”的错误 - I've facing the error with the message "No signature of method:.." 我收到一条错误消息,提示应以静态方式访问静态字段“ CELL_TYPE _ ***” - I am getting an error message saying that the static field “CELL_TYPE_***” should be accessed in a static way
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM