I have an issue which has been bothering me for days... I checked similar questions but couldn\'t find a solution.
I use NetBeans IDE. I build the project jar file i
Looking at the source again closely, try..
URL url = getClass().getResource("/clock/input.txt");
InputStream name = url.openStream();
I recall that the Class::getResourceAsStream variant deals with paths slightly differently than simply Class::getResource - I am sure it should work for the latter one.