NoahBres / MeepMeep

Path visualization tool for Road Runner
63 stars 34 forks source link

"class file for java.awt.Image not found" #9

Closed TWinston-66 closed 2 years ago

TWinston-66 commented 2 years ago

When running the sample code, on the line below, I get the error "class file for java.awt.Image not found"

meepMeep.setBackground(MeepMeep.Background.FIELD_FREIGHTFRENZY_ADI_DARK);

NoahBres commented 2 years ago

You've most likely set your run configuration to an Android app. https://youtu.be/vdn1v404go8 (see around 7 minutes). The run target should be an "Application"

TWinston-66 commented 2 years ago

Is this the correct config? Screenshot from 2022-03-08 12-18-32

NoahBres commented 2 years ago

Looks to be correct. Are you still encountering that error with the given config?

TWinston-66 commented 2 years ago

Yeah I am... Screenshot from 2022-03-08 14-47-49

TWinston-66 commented 2 years ago

I've tested it on both Windows and Linux machines and it's broken in both. Is there a version of the JDK or something I need that I am missing?

TWinston-66 commented 2 years ago

I got it to work by installing it into an Intelli J project using JDK 16 SE. ![Uploading Screenshot from 2022-03-10 11-31-23.png…]()

NoahBres commented 2 years ago

Hm. That's very interesting. I'm not sure why your own JDK/JRE versions don't include the awt packages. I use JDK 11 in my testing so its not a version issue.

I don't really have any insight I can provide regarding this. Apologies. I am glad it is working now!