PDA

View Full Version : [java problem] eclispse + javaCompilerClass


mickey
26th July 2008, 13:42
Hello,
I have to use JavacompilerClass:

JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
System.out.print("coimpiler " + compiler);

That print, prints "null" and here below I read that my VM should use the JDK instead of JRE???

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6477844


How can I solve this problem, please? thanks,

wysota
26th July 2008, 15:49
JRE doesn't include a compiler.