where can I find help on to setup artifact- create runtime jar- include libs- write META-INF
Dear Frends,
I am using IDEA v10, I write an application which uses some jar libs.
I want to create a single jar file to execute. I notice I should use artifacts.
Is there any help (guide) to help me how to configure it
How create single jar include all lib dir jars?
How modify META-INF file, what should be included in?
Thanks
Please sign in to leave a comment.
See http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/.
>
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Dear Friend,
Thanks for guide. Based on simple guide I wrote a sample to implement it.
I created a simple app with a call to sqldjbc.jar and included the required file to a dir named "LibsDir" and in project settings>Libraries>attach jar Directories to use it. in this way if anytime I need more lib jar, Just add it to "LibsDir" dir.
I runned application in IDEA and get ok.
Now I tried to build a client usable single jar file. as guided i done what is mentioned. don't work and get error.
what I need
- creates single executable output jar file which includes libs jars (no addidtinal jar files should be sent to client) and correct META-INF
- During developing application I need to add some jars as library, what I do is just copy it to "LibsDir" library. can I config artifact (product jar) generation be automatically add what is included in "LibsDir" dir and no need to manually add it and also modify META-INF file
I attached my sample project to help advise me
Thanks
Tarvirdi
Attachment(s):
JarTest.rar.zip