This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar

 
Nancy Bradley
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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 ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic