Ok this is weird.....

I made a GUI for the Javadoc (because I can hehehe).

I can run it on a source file called TestProject.java and it works wonderfully.

It won't work on any other file. If I change the filename to TestProject2.java (and the corresponding class inside it), it won't run. I don't get any errors, it just won't do it.

If I copy and paste the command I'm using into a DOS window, it works fine no matter what the file name is.

This is the line I am using:

p = Runtime.getRuntime().exec("javadoc -sourcePath C:\\Test -d C:\\Test\\Docs -private TestProject");

As far as I can tell I'm doing it right (because it works in DOS).

Any suggestions?

Cheers,

Trevor

[724 byte] By [91004138] at [2007-9-26 22:57:07]
# 1
use this> p = Runtime.getRuntime().exec("javadoc -sourcePath> C:\\"+sourcepath.getText()+" -d C:\\"+docpath.getText()+" -private "+mainclass.getText());(I assume they're varibles it textfields)
shishthemoomin at 2007-7-4 3:43:23 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...