So i am new to Java and this will probaly the easiest question you will ever see, still I can not find the anser on the internet.

I want to set the icon of my program, This code does works:
`frame.setIconImage(Toolkit.getDefaultToolkit().getImage("MYPROBLEM"));`

Yet i can not get the path correct at the MYPROBLEM section. This is my structure:

> 
> Projectname
> 
> 
> -src
> 
> 
> --default package
> 
> 
> ---myfunctions
> 
> 
> --test <----a map
> 
> 
> ---icon.png
> 
> 
> 

Whenever i replace MYPROBLEM with src/test/icon.png it does work. however when i export my application as jar the default Java icon shows up. Replacing MYPROBLEM with something like test/icon.png does also not works.

I do appologise for my English. Bear with me because I am a newbie ;)