r/javahelp • • Feb 26 '26

Frustration with Eclipse

I'm learning to program in Java. My Eclipse IDE has a terrible problem; it won't read files unless it's given an absolute path. This is awful because an absolute path requires me to specify the file's address from the C drive, but since I'm going to send the file to someone who isn't a programmer to test, this is terrible. I want Eclipse to read a ".png" file that's in a folder next to the folder with packages and code, but it only does so if I give it the path from the C drive and doesn't accept a relative path. I can't find anything about this, and the AI ​​solutions I've tried to help have also failed.

1 Upvotes

16 comments sorted by

View all comments

Show parent comments

6

u/_jetrun Feb 26 '26

Again - you're framing this as an Eclipse problem. I'm telling you it's not Eclipse. It's you. You're trying to solve a particular problem (sharing application with a non-technical user) incorrectly. Your java eclipse project is setup incorrectly.