You can use typical unix style paths to get the resource from the package. For example,


Main.class.getResource("/resources.txt") ;///gets the resource.txt in the package root directory...