Using Javadoc on Processing Sketches [message #1821245] |
Fri, 07 February 2020 18:26  |
Eclipse User |
|
|
|
I am developing a Processing Sketch in Eclipse. I desire to use Javadoc for documenting it.
Javadoc quits with an error on valid code in a Processing sketch. The statement it objects to is:
The error is:
C:\Projects\eclipse-workspace\Sensors\src\Sensors_Graph_pkg\Sensors_Graph_4_pde.java:15: error: package processing does not exist
import processing.*;
^
1 error
But this package does exist. I am able to execute the sketch. Why is it even important to Javadoc whether or not this package exists? All I want it to do is document my own code, and not anything else.
If I temporarily comment out that line it objects to Javadoc will complete the documentation, but the sketch will not run. I consider this to be an awkward work around for a problem I need solved.
|
|
|
Re: Using Javadoc on Processing Sketches [message #1821246 is a reply to message #1821245] |
Fri, 07 February 2020 18:38  |
Eclipse User |
|
|
|
First, javadoc is one of the few things that JDT simply invokes from JDK, so the errors you see are not raised by Eclipse but by the standard javadoc command.
Second, there could possibly be confusion about whether or not a given package exists. Per JLS, it needs at least one compilation unit declaring that package.
Lastly, of course failure to find (compilation units in) that package could still be due to incomplete classpath during analysis. To find out, we'd need to know more about your project layout (please don't assume knowledge about Processing Sketches).
|
|
|
Powered by
FUDForum. Page generated in 0.03895 seconds