it's again about VSCode and Java (I start learning it). I have a little test program that loads images and works fine when started in the VSCode IDE. I have also seen here that I must somehow load the pics from a "classpath" - so I added a classpath for the "pics" folder shown in the screenshot.
I see that the pics are loaded into the jar, but they are not found at runtime (maybe because of the sub-folder or because they are not in src - but I want to have them in a separate folder of course). See the source code also in the screenshot - how should I do better to have the jar working, but also can test the code in the IDE? At the moment i do like this:
PicLabel pl1 = new PicLabel(new File(
"./pics/Screenshot from 2022-07-20 15-40-16.png"));