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
-
▼
2007
(24)
-
►
January
(12)
- Mysql starting error: ... STOPPING server from pid...
- java knowledge tree
- 利用~/.netrc文件自动ftp下载文件 (当天或昨天的tomcat日志)
- KMail提示用户可能忘了附件的有趣功能
- use crontab and mail command to backup your firefo...
- send mail with attachment in command line
- add authentication for awstats in apache
- vim与gvim 转换highlight的文本到html网页
- Use eclipse with ant to deploy your java project -...
- Eclipse and gaim font settings under KDE
- to implement SVN password changing function by she...
- difference on class between php version 4.4.4 and ...
-
►
January
(12)
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.
0 comments:
Post a Comment