简体   繁体   English

无法使用Intellij IDEA运行任何应用程序

[英]Can't run any application with Intellij IDEA

I used to work with Intellij IDEA and at a certain moment something happened that i can't run any application anymore. 我曾经与Intellij IDEA一起工作,并且在某个时刻发生了一些我无法再运行任何应用程序的事件。 The problem is that buttons 'Run' and 'Debug' (the ones that are called with Shift+F10 and Shift+F9) are inactive - 问题在于“运行”和“调试”按钮(使用Shift + F10和Shift + F9调用的按钮)处于非活动状态-

在此处观看屏幕截图 .

There are also another pair of this buttons, that are called with Alt+Shift+F10(F9), but after i click on them, i get this - 还有另外一对这样的按钮,用Alt + Shift + F10(F9)调用,但是单击它们后,我得到了-

屏幕截图 .

I tried to reinstall IDE, but that didn't help. 我试图重新安装IDE,但这没有帮助。 Here the code of the application i'm trying to run, though it doesn't work with any application. 在这里,我尝试运行的应用程序代码,尽管不适用于任何应用程序。

PS I'd like to add also a screenshot of the project structure, but i can't post more that 2 links, so i just do this way: PS我也想添加一个项目结构的屏幕快照,但是我不能发布两个以上的链接,所以我只是这样做:

>untitled
  >idea
  >out
  >src
    >(C) WallyFinder
  untitled1.iml
>External Libraries

The code: 编码:

import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class WallyFinder {

    public static int wheresWally(String str) {
        Matcher m = Pattern.compile(" Wally\\b").matcher(" " + str);
        return m.find() ? m.start() : -1;
    }

public static void main(String args){
    int a = WallyFinder.wheresWally("aaaaWally");
    System.out.println(a);
}
}

The directory structure is wrong I think. 我认为目录结构是错误的。 It should be like this 应该是这样

>untitled
  >idea
  >out
  >src
    >main
       >java
         >(C) WallyFinder
  untitled1.iml
>External Libraries

Can you please try this. 你可以试试这个吗?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM