I have a Java project in Eclipse with the following directory structure:
Root
----->Data
----->lib
----->src
----->packageName
------------> Main.java
The lib folder contains all the jars and some other files the project depends on. The data has some wav files the project processes. I want to run this project from the command line and hence I was exporting this project as a runnable jar. However when I do that, I see that the resulting jar has all the contents of the data and the lib folders in the root folder itself and the data/lib folders are completely gone.
What have I tried without success:
I used WinRar to simply add the data and lib folders with the appropriate content to the generated Jar. However, when I run this Jar, the compiler is unable to find the files present in the Data and Lib folders.
Any ideas on what can I do to solve my problem?