sptallent / drpg_farming_bot

0 stars 0 forks source link

Could you help me? #1

Open Diego283978 opened 4 days ago

Diego283978 commented 4 days ago

Hi, im having a problem, could you help me? im getting this The import com.sun.imageio cannot be resolved

sptallent commented 4 days ago

Is that for the GrindRobot class? Are you using the intellij IDE? The program seems to not be able to find the com.sun.imageio dependency. This library isn't included in newer java SDK versions. When creating this project, I used an older SDK that still included this dependency. You'll need to either manually include this dependency in your project, switch to a lower SDK version that includes this library, or find a replacement that will provide the same solution. I believe it is only used in the GrindRobot.class for loading image resources into the program(lines 49 to 53 of GrindRobot.class). ex) private final URL evp_url = ImageUtil.class.getResource("/images/evp.png");

It should be possible to use 'import javax.imageio.ImageIO;' instead depending on the version of your SDK.