Please help! I need to create a jar file this is what I wrote: jar cf Rectangle1.jar Rectangle1.class when I checked to see what was in jar file, I am missing Rectangle.class.It is save in the same folder as Rectangle1. How can I added to the file? I would also like to know how to run a jar file? Thanks for your help Nancy B [ April 05, 2004: Message edited by: Nancy Bradley ]
I am missing Rectangle.class I'm not sure if this is a typo. Did you mean Rectangle1.class? If not, then perhaps Rectangle.class isn't in the JAR because you didn't instruct the jar program to include it, as you instructed it to include Rectangle1.class. If it is a typo, then are you sure that the Rectangle1.class is in the same working directory that you used when running the jar program? I would also like to know how to run a jar file Take a look at the Creating an Executable JAR File thread.
Thank you. Rectangle.class contains code that should calculate area and perimeter of a rectangle and Rectangle1 is an applet that should test it. I did not include it when crated the jat file. The information that you provide in the jar thread is very helpful. I will try again tonight Thanks Nancy B