- 1). Click "Start," then "Run," then type "cmd" and press "Enter." Click on the newly opened Command window.
- 2). Type this command into the Command window:
cd "\javaProject"
Replace "\javaProject" with the name of the folder containing your class files. - 3). Create a file named "projectManifest.mf" with a text editor. Include the following line in the file:
Main-class:mainClass
Replace "mainClass" by the name of the class containing the "main" method in your application. By convention, the execution of any Java application starts by invoking that method. Save the file and exit the editor. - 4). Create a single, executable jar by typing into the Command window:
jar -c -m projectManifest.mf -f javaExec.jar mainClass.class anotherClass1.class anotherClass2.class
Replace "anotherClass1," "anotherClass2," ... with the file names of all other class files your application has. Press "Enter." The jar (Java archive) tool will generate an executable file named "javaExec.jar". Moving that file will move the whole application; opening that file will start the application.
Tags
PHP
Programming
C C++
ASP
Development Tools
Ajax
XML
Javascript
Python
VB
VC
perl
dephi
Ruby
sql
technology
Microsoft Access
Excel
ffice
Powerpoint
Word
Oracle
Related Posts "Technology"
-
Web Development Dubai - Web Design Dubai - Website Design Dubai
7/11/2019 4:38:00 AM -
Make a Wise Decision While Selecting the Seo Usa Company
7/10/2019 11:11:00 PM
You might also like on "Technology"
Make your website compatible for all browsers
7/10/2019 5:33:00 PM
Top IT Project Fails of All Time
7/10/2019 4:41:00 PM
Ideas for Website Designing
7/10/2019 2:47:00 PM
How Custom Application Development Can Help the SMEs
7/10/2019 7:44:00 AM
JavaScript By Example
7/9/2019 10:52:00 PM
What a Web Designer can do For you?
7/9/2019 10:42:00 PM
How to Get an Image in Java
7/9/2019 6:14:00 PM
19- What is the role of technology services?
7/9/2019 3:18:00 PM
Studying About Arthritis And How To Ease It
7/9/2019 3:08:00 PM
Dirty Delphi Localization
7/8/2019 4:56:00 PM
Advantages Of Hiring A Professional To Build Your Wordpress Website
7/8/2019 4:34:00 PM