I've created a simple Java scratch file containing a class named "TestGenerics" containing some code and a main method. The code seems to be fine, however when I try to run it (by right clicking > Run 'TestGenerics.main()', I get this error: "Module not specified"
Similar situation occurs with a scratch file containing Lua code, error message: 'Error running scratch.1 (2): Executable is not specified'
Any ideas?
Meo
来源:https://stackoverflow.com/questions/27120806/how-do-i-run-the-code-from-a-scratch-file-in-intellij-14