<< My ongoing intenship | Home | Java ME SDK 3.0 and IntelliJ IDEA >>

IntelliJ IDEA, missing file in the JAR

How to add files missing to the JAR

Last week I was helping somebody with mobile project targeting multimedia development that required mp3 file to be added to the final JAR. I spent good 30 min thinking and checking my older similar themed projects for any clues that would tell me why my packaged application was missing required mp3 files.
Well answer is simple. IntelliJ IDEA has a list of extensions for files that are by default added to final package if found in root directory on compile. However mp3 wasn't one of them.



To add extension of desired files to the list you need to press File >> Settings and in pop-up window select Compiler. Here in Resource Patterns add missing file extension in format ";?*.mp3".
Job done, file will be added on next compile.

Read more...




Add a comment Send a TrackBack