发生 JNI 错误

JNI error has occured

我尝试 运行 这个程序作为测试,但我收到错误,"A JNI error has occurred, please check your installation and try again," 后跟 "A Java Exception has occurred"。关于如何解决这个问题的任何想法?

package java;

public class ExpressionsStatementsBlocks {
    public static void main(String[] args) {
        float num;
        num = 5/2;
        System.out.println(num);
    }
}

您不能使用 "java" 作为包名。尝试使用其他名称,例如 "jaba".