用idea intellij导入Groovy和java混在的工程后,执行groovy时一直报错Could not find the main class,groovy环境变量都配好了没问题,还以为是java和groovy不能混在一个工程里导致的,后来发现,原来是src和test目录没有标记导致的 把main目录和test目录标记一下就好了,真TM无语! 【mark directory as】这个执行完后就行了
idea intellij 执行Groovy发生Could not find the main class问题
idea intellij 发生Could not find the main class问题用idea intellij导入Groovy和java混在的工程后,执行groovy时一直报错Could not find the main class,groovy环境变量都配好了没问题,还以为是java和groovy不能混在一个工程里导致的,后来发现,原来是src和test目录没有标记导致的把main目录和test目录标记一下就好了,真TM无语!【mark directory as】这个执行完后就行了