Null Pointer Exception while using Java Compiler API

前端 未结 6 2342
北荒
北荒 2020-11-27 07:03

MyClass.java:

package test;
public class MyClass {
    public void myMethod(){
        System.out.println(\"My Method Called\");
    }
}

Li

6条回答
  •  误落风尘
    2020-11-27 07:54

    Probably you have a JRE instead of JDK installed. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6477844

提交回复
热议问题