Hi friends, Today I am going to write about creating .jar file for desktop application
which is a executable file , means if user click onto this .jar file, application will start
itself.
This can help to the one who is wanting to know how to create executable .jar file for
their project or to deploy application at client site.
please give your comment on these articles .
Steps are given below.
Steps to make .jar(Java Archive)
For .jar file
1. Write your .java file & then compile it, after compiling it will generate .class file
2. Write manifest.txt file , in this write only one line as given below ,suppose your source file name is Test.java then
Main-Class: Test
after writing the above line press enter , and then save it with the name of manifest.txt
3. Now put both your .class & manifest.txt file in one folder
4. open command prompt and go into that folder and give instruction as given below
jar -cvmf manifest.txt app1.jar Test.class
5. After executing this command your jar file will be created and you can run it using the command as given below
java -jar app1.jar
6. You will get the output of your java program
7. To see content of jar file in tabular format
jar -tf app1.jar
8. To extract the jar file
jar -xf app1.jar
If you are interested in this article , so send me a e-mail
and I will send you the example of this.
Thanks
Pawan
java wreslers
Sunday, December 5, 2010
Monday, November 15, 2010
Developing Mobile Apps using J2ME
Hi , Do you wants to create "Mobile Application" and wants to talk about java technology, if yes then this the right place . you are welcome.
I will be writing/discussing interesting topics of java.
I hope , you all will like it and suggest me to improve the contents . And even, I will request you all to share your knowledge, so that everybody gets benefit of that.
Thanks and Regards
I will be writing/discussing interesting topics of java.
I hope , you all will like it and suggest me to improve the contents . And even, I will request you all to share your knowledge, so that everybody gets benefit of that.
Thanks and Regards
Subscribe to:
Posts (Atom)