Create JAR with an included txt

0

I have a program that saves the contacts in a simple txt file, but when I want to run the jar on another machine (I generate the jar using the netbeans package for store), when I run on another machine it does not find txt.

In android I can do this by putting the txt file inside the assets folder, in java I read something about ClassLoader classLoader = getClass().getClassLoader(); but I could not do it either.

To do this should I put the txt in some 'specific folder or' is it otherwise?

    
asked by anonymous 08.03.2016 / 12:23

0 answers