Reputation: 3256
I have simple Java Application and trying to create JAR to distribute using eclipse.
But when I look inside JAR it doesn't contain the test.txt file. I created JAR as Export>Runnable JAR File
Upvotes: 0
Views: 244
Reputation: 15906
See the following image: Choose the file which you want to add in jar file.
Upvotes: 0
Reputation: 262824
You need to put that file into one of your source folders (such as src
). Only those get copied into the jar file (by default).
Upvotes: 2