Run-time compiling trouble.

Hello. I wrote the simple command-prompt program that tries to compile existent java code. Any tries are ends with message: error: Can't read: d:\vcs\tries\test.java

1 error

[done in 481 ms]

There are code:

String[] args = {"-g","-verbose","-classpath","D:/MyDocs/OWN/classes/","-d", "D:/MyDocs/OWN/classes/", "d:\vcs\tries\test.java"};

sun.tools.javac.Main compiler = new sun.tools.javac.Main(System.out,"javac");

compiler.compile(args);

I will be happy to any ideas. Thanks in advance

[545 byte] By [zors] at [2008-1-23]
# 1
Just a shot in the dark, but you don't have any spaces between your arguements.And you have to tell it to read from the array at a given position. args[1], args[2].?
scurveon at 2007-7-2 > top of java,Developer Tools,Java Compiler...