<< 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.

Categories : Tips, IntelliJ IDEA, JME

Export this post as PDF document  Export this post to PDF document

Social Bookmarks :  Add this post to Slashdot    Add this post to Digg    Add this post to Reddit    Add this post to Delicious    Add this post to Stumble it    Add this post to Google    Add this post to Technorati    Add this post to Bloglines    Add this post to Facebook    Add this post to Furl    Add this post to Windows Live    Add this post to Yahoo!
Technorati Tags : , , , , , , , ,



Add a comment Send a TrackBack