I have a project A, which contains some java files and a classpath resource R.txt. Within the project I use ClassLoader.getSystemResource(\"R.txt\"); to retrieve R.txt.
Does ClassLoader.getResource() work ? At the moment you're simply specifying that the system classloader is to be used.