The problem of java.exe''finished with non-zero exit value 1'appears when gradle compiles the java project

Solve the problem of java project: java.exe''finished with non-zero exit value 1

Details of specific issues:

Execution failed for task ':T01_Teet.main()'.
>Process 'command 'xxx/java.exe'' finished with non-zero exit value 1

The above is the error message, using the Java learning project built by gradle. After writing the code, there is no problem, but it will explode when running.

View detailed questions

发现是在程序中出现:java.lang.ArrayStoreException
定义数组的时候Thread[] ts= MyThread[]
在后赋值的时候ts[i] = new Thread

Guess you like

Origin blog.csdn.net/Bruce_Zhang0828/article/details/108291184