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.