This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I can able to create and executes jar files containing my packages and classes. But, how to include some jar files (like jmf.jar, etc) into my jar file. It creates properly, but results in Exception in thread "main" java.lang.NoClassDefFoundError:
Ex: test folder contains TestHello.java and a package hello.
This hello package contains Hello.java ...\test\classes>jar -cvfe hello.jar TestHello *.* - creates and executes properly (java -jar hello.jar displays output properly)
yes, thanks to all.
Finally I extracted the required jar files into respective folders.
Added the required packages (referred in our java source files with import, etc) from them into my jar with my packages and class files.