Utilize shell scripts,linux commands, open source tools,java, to Maximize the Power of Linux.
Focused on working with linux and shell, search engine technology including Chinese segmenter
Any questions please contact me at gmail: david.ullua


how to package jar easily with find command

Eclipse jar packing function isn't very easy and comfort to use. Sometimes the packaged jar does not include some classes.

we can use find and jar command to make a jar package easily:
assume $project is where your project located, and bin is the output directory.
com.xxx.yyy is the parent package of the project.

cd $project/bin
find ./com  > classlist  (or find ./com -name *.class if you have .cass files only)
jar -cvf project.jar @classlist

About Me

I am a senior developer and a team leader with 3 years development experience in Suzhou, China, focus on mobile web search, linux, Java and machine learning in NLP (natural language processing). My goal is to improve people's life with computer technology.