How to run code from scratch file in IntelliJ 14?

I created a simple Java screen file containing a class called "TestGenerics" containing some code and a main method. The code seems fine, however, when I try to run it (by right-clicking> Run "TestGenerics.main ()", I get this error: "Module not specified"

A similar situation occurs with a file from scratch containing Lua code, an error message: "Error starting scratch. 1 (2): The executable file is not specified"

Any ideas?

+11
intellij-idea ide intellij-14 scratch-file
Nov 25 '14 at 7:17
source share
1 answer

This was previously impossible, but is now supported for some languages. like Java and Ruby . For these languages, you should be able to run the file from scratch just like you would any other file.

+3
Nov 25 '14 at 9:06
source share



All Articles