Error: The public type [ClassName] must be defined in its own file
in
Programming Questions
•
1 year ago
Hi, I just downloaded Processing 1.5.1 and I'm getting the following error: "
The public type RedirectingMenuItem must be defined in its own file".
I have two classes:
- MyDemo, which is in the MyDemo folder and is named "MyDemo.pde"
- RedirectingMenuItem, which is in the MyDemo folder and is named "RedirectingMenuItem.pde".
When I run MyDemo, which creates RedirectingMenuItem objects, I get the error I mentioned earlier.
I know Java, but this is my first time using Processing and the PDE, so I don't know what I'm doing wrong as it seems that my files are named correctly and I keep getting this error no matter what I do.
Is there something obvious I'm missing here?
I have two classes:
- MyDemo, which is in the MyDemo folder and is named "MyDemo.pde"
- RedirectingMenuItem, which is in the MyDemo folder and is named "RedirectingMenuItem.pde".
When I run MyDemo, which creates RedirectingMenuItem objects, I get the error I mentioned earlier.
I know Java, but this is my first time using Processing and the PDE, so I don't know what I'm doing wrong as it seems that my files are named correctly and I keep getting this error no matter what I do.
Is there something obvious I'm missing here?
1