Creating jar

I need to create a jar file in a folder consisting the files inside the folders that are outside the current working folder. I tried a lot with -c option but i cant get it.

Let me brief what i need.

i am having some java files in the path"D:\velu"

and i need to create a jar named code.jar inside the folder"D:\velu\JarClasses".

say my current working directory(CWD) is "D:\velu\JarClasses".

Any ideas from ur experience?

[482 byte] By [Er.Vela] at [2007-11-27 4:29:23]
# 1
http://java.sun.com/docs/books/tutorial/deployment/jar/build.html
CaptainMorgan08a at 2007-7-12 9:38:21 > top of Java-index,Java Essentials,New To Java...
# 2

Friends

when working in "D:\velu\JarClasses", i tried this command.

jar cf cons_May_10_eTime_PR_code.jar -C D:\velu\eTime *.java

it does'nt works saying that file or folder "D:\velu\eTime\*.java" not exists

But if i tried this command

jar cf cons_May_10_eTime_PR_code.jar -C D:\velu\eTime .

it works to jar all the files in "D:\velu\eTime" which is not needed.

so how could i jar only the java files.

Er.Vela at 2007-7-12 9:38:21 > top of Java-index,Java Essentials,New To Java...
# 3
Thank you CaptainMorgan, for your kind reply. I had already gone through that but it does'nt help me to do what i need.
Er.Vela at 2007-7-12 9:38:21 > top of Java-index,Java Essentials,New To Java...