Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

I am having an error regarding the module not being found for the SimplePaint program for lab1, the package is included and is in the same file as App.java which runs just fine (the package code line used in simplepaint was copy pasted for App.java so it isn't a possible spelling error). Did anyone else have this issue, and if so how did you resolve it?

asked in CSC305 Fall 2023 by (1 point)

1 Answer

+3 votes

Here were some suggestions I emailed earlier (although I'm guessing they didn't work for you, or you would have mentioned it!)

  1. Since App.java launches but SimplePaint does not, it seems likely something could be messed up in the "Run Configuration" for SimplePaint. You could compare the "Run Configuration" properties to see what, if anything, is different. (Run menu -> "Run Configurations", and you can view/edit both the SimplePaint and the App run configurations there. )

  2. Maybe try a "Project -> Clean"

  3. Maybe try changing the Java JDK version in the Build Path configuration.

  4. Maybe try "Project -> Update Maven Project" (although this also seems to set your Java version back to 11).

However...

Based on the increasing frequency with which people are having problems using Maven and JavaFX using Eclipse, I am seriously thinking we should all switch to IntelliJ.

So... how about you try installing IntelliJ (free community edition) and then create a new Maven Project (from the openjfx-simple archetype, just like we did in Eclipse), and copy the SimplePaint.java program into your IntelliJ project, and I bet it will run just fine for you there.

answered by (508 points)
...