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
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
Labels
- working with linux (9)
- tools for developer (7)
- java (4)
- common tools (3)
- php (3)
- shell (3)
- linux (1)
- linux virtualization (1)
- mysql (1)
3/31/2007
Subscribe to:
Post Comments (Atom)
Blog Archive
About Me
- euler
- 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.
No comments:
Post a Comment