Java 暂存文件无法在 intellij 2016 中执行

Java scratch file unable to execute in intellij 2016

以前我使用的是引入了临时文件功能的 Intellij15,它在那里成功执行了 java 代码。但是在升级到 intellij16 之后,我无法执行 java 类型的 scrach 文件。 谁能告诉我在 intellij16 中工作的方法

Scratch files 运行 我在 Intellij IDEA 2016.3 上没问题

遵循的步骤:

  1. 请注意,有 Scratch files 和 Scratch buffers 但只有前者 运行nable 并且是通过以下方式创建的:

  1. 然后选择语言:

  1. 添加然后创建并执行所需的代码,例如:
class Blah{
    public static void main(String[] args){
        System.out.println("Blah");
    }
}

查看下面的实际操作: