• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jar

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Nancy Bradley
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic