![]() ![]() Hopefully, at this point you have a picture like I have below in your folder. No problem, instead of the last line up above, type: C:\> C:\Path\to\jdk\bin\jar cvfm jarDemoCompiled.jar manifest.txt *.class Remember the path to jdk\bin\jar will be similar on your computer but almost definitely not exactly the same as mine. Here's the actual screen shot from my command prompt. java file has more than one class then each class will compile into a separate class files. java file) may contain one class or more than one class. As we know that a single Java programming language source file (or we can say. java files as a result of successful compilation. When I don't usde the shortcut on my computer, I must type:Ĭ:\> C:\"Program Files"\Java\jdk1.6.0_02\bin\jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.classĬvfm means "create a jar show verbose output specify the output jar file name ( jarDemoCompiled.jar) specify the manifest file name( manifest.txt) and use the file JarDemo.class to create the jar A Java class file is created by a Java compiler from. You can set the path as followsĬ:\> jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.class ![]() If you don't like always typing out the generally long path to the jdk.1)Use the command prompt to navigate to where the JarDemo.class and manifest.txt file are saved and type :Ĭ:\> C:\Path\to\jdk\bin\jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.class ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |