What i want is to read the properties from the classpath like so:
This way i can just put the properties file somewhere into the classpath and use it. But i get always null (for url). How to solve it? Thanks in advance for help.
So what does your classpath look like exactly? You should add the "path" directory (that contains the gantt.properties file) to the classpath. Don't include the file itself into the classpath.