[英]Can't run any application with Intellij IDEA
我曾經與Intellij IDEA一起工作,並且在某個時刻發生了一些我無法再運行任何應用程序的事件。 問題在於“運行”和“調試”按鈕(使用Shift + F10和Shift + F9調用的按鈕)處於非活動狀態-
。
還有另外一對這樣的按鈕,用Alt + Shift + F10(F9)調用,但是單擊它們后,我得到了-
。
我試圖重新安裝IDE,但這沒有幫助。 在這里,我嘗試運行的應用程序代碼,盡管不適用於任何應用程序。
PS我也想添加一個項目結構的屏幕快照,但是我不能發布兩個以上的鏈接,所以我只是這樣做:
>untitled
>idea
>out
>src
>(C) WallyFinder
untitled1.iml
>External Libraries
編碼:
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);
}
}
我認為目錄結構是錯誤的。 應該是這樣
>untitled
>idea
>out
>src
>main
>java
>(C) WallyFinder
untitled1.iml
>External Libraries
你可以試試這個嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.