Previously i was using Intellij15 where the scratch file feature introduced and it was successfully execute java code there. But after upgrading to intellij16 i unable to execute scrach file of type java. Can someone tell me a way to work in intellij16
Asked
Active
Viewed 1,044 times
1
-
Did you tried the approach described in official documentation? https://www.jetbrains.com/help/idea/2016.3/scratches.html – DimaSan Nov 28 '16 at 10:56
1 Answers
1
Scratch files run fine for me on Intellij IDEA 2016.3
Steps followed:
- Notice that there are Scratch files and Scratch buffers but only the former are runnable and is created via :
- Then choose the language:
- Add then create and execute the desired code, for example:
class Blah{
public static void main(String[] args){
System.out.println("Blah");
}
}
See this in action below:

Ashutosh Jindal
- 18,501
- 4
- 62
- 91