views:

27

answers:

0

Hi guys, I make my own web server, that compile user scripts from folder. It works perfectly on Netbeans Ide, but then I compile my project, and run it from the jar I have an error:

Caused by:
java.lang.NullPointerException
        at webserver.compiler.Compiler.<init>(Compiler.java:35)

Compiler.java :
private final JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
private final StandardJavaFileManager standartFileManager =
      javac.getStandardFileManager(diacol, null, null);

I suppose, that something wrong this classpath. %)