Having an issue loading text files

I’m currently having an issue where my files will load fine with eclipse, however, they won’t load when the jar is exported and run. Here is the code that is giving me trouble.


	private static void loadFirstNamesMale(){
		try{
			URL url = (Assets.class.getResource("/firstNamesMale.src")); // This is apparently returning as null.
			BufferedReader reader = new BufferedReader(new FileReader(new File(url.getFile())));
			String line = "";
			while((line = reader.readLine()) != null){
				firstNameMale.add(line);
			}
			System.out.println("Loaded: firstNamesMale.src");
		}catch(Exception e){
			e.printStackTrace();
		}
	}

I can’t seem to find the problem. Any help is appreciated.