Javadoc Error 2
here for a quick overview of the site Help Center Detailed javadoc ant answers to any questions you might have Meta Discuss the createprocess error=206, the filename or extension is too long workings and policies of this site About Us Learn more about Stack Overflow the createprocess error=2, the system cannot find the file specified company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CreateProcess error=2 running javadoc from Ant up vote 15 down vote favorite 5 Can anyone tell me why I am getting this error message Buildfile: C:\Users\Tara\workspace\Testing\build.xml doc: [delete] Deleting directory C:\Users\Tara\workspace\Testing\doc [mkdir] Created dir: C:\Users\Tara\workspace\Testing\doc [javadoc] Generating Javadoc [javadoc] Javadoc execution BUILD FAILED C:\Users\Tara\workspace\Testing\build.xml:24: Javadoc failed: java.io.IOException: Cannot run program "javadoc.exe": CreateProcess error=2, The system cannot find the file specified Total time: 206 milliseconds when I run this in Eclipse?
to comments All things being equal, I like projects that build out-of-the-box. That is, given a clean checkout from revision control, a project should just build without requiring too much customization: setting environment variables, installing third party software, modifying the system path. I'm especially sensitive to this at the moment because I've just finished up five days (actually maybe 30 hours all together) getting one particularly horrible system to build. Along these lines, I added a javadoc task to an http://stackoverflow.com/questions/3643319/createprocess-error-2-running-javadoc-from-ant Ant build script today and tried running it from Eclipse. Just for the record, that procedure is as follows: Open build.xml Right-click the task in the Outline View Select Run As->Ant build. Interestingly enough, this failed with the following error: build.xml:208: Javadoc failed: java.io.IOException: Cannot run program "javadoc.exe": CreateProcess error=2, The system cannot find the file specified A quick Google http://blog.darevay.com/2008/12/running-javadoc-ant-task-from-eclipse/ search reveals several suggestions that the solution is to make sure that javadoc.exe is on the system path. First, it's a little ridiculous that Ant can't find javadoc from JAVA_HOME when it clearly uses the same mechanism to track down javac. Oh well. Bygones. Second, returning to the idea of builds that "just work", I don't want to modify my system path. What if I have several JDKs installed, used with several different projects simultaneously? So, how do we get javadoc onto the system path without modifying it? Simple, modify the path in Eclipse. This time, run the Ant task with the following procedure: Open build.xml Right-click the task in the Outline View Select Run As->Ant Build … That elipsis at the end is important. This will bring up the Eclipse launch configuration dialog. Give your new launch configuration a name, like "Build
Tool DevelopmentEvents and OpportunitiesGeneral Discussion Sub forum : Move this topic Cancel Library and Tool Development quarks Problems using https://forum.processing.org/topic/problems-using-the-library-template the library template in Library and Tool Development • 2 years ago I have downloaded the latest library template and have followed the instructions but when I build using the ant file I get 2 sets of errors shown here versionSourcefile: [echo] C the file [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' [replaceregexp] The following file is missing: 'C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\C' and generate.javadoc: [javadoc] javadoc error 2 Generating Javadoc [javadoc] Javadoc execution BUILD FAILED C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\resources\build.xml:97: The following error occurred while executing this line: C:\Users\Peter\Documents\e_workspaces\ws-java5\GameAI\resources\build.xml:183: Javadoc failed: java.io.IOException: Cannot run program "javadoc.exe": CreateProcess error=2, The system cannot find the file specified The JavaDoc one surprises me since I have jdk1.6.0_23 on the build path. Any help would be appreciated. Using Eclipse Helios on Windows 7 Proffessional ( 64bit ) 1 Replies(19) PhiLho Re: Problems using the library template 2 years ago " I have jdk1.6.0_23 on the build path" Is its bin directory in the Windows path? (not sure if it is useful, just guessing...) Leave a comment on PhiLho's reply ignotus Re: Problems using the library template 2 years ago javadoc.exe sounds like a file with commands that call on JavaDoc with whatever configuration is appropriate for the template--is i