Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run the code from a scratch file in IntelliJ 14?

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?

like image 498
danielgpm Avatar asked Nov 25 '14 07:11

danielgpm


1 Answers

This was previously not possible, but is now supported for some languages. such as Java and Ruby. For these languages, you should be able to run the scratch file in the same way as you run any other file.

like image 191
Meo Avatar answered Sep 30 '22 12:09

Meo