• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Sybex CSG 11 - Chapter 11: Modules - Page 463 (RESOLVED)

 
Greenhorn
Posts: 8
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In order to study, I decided to write all codes and to create all directories. But I became stuck when I reached the jar command to create the first module jar file.
The problem is that, in this page, the command "jar -cvf mods/zoo.animal.feeding.jar -C feeding/" is incorrect, as it needs a blank space before the slash to fulfill its needs.

After executing "jar -cvf mods/zoo.animal.feeding.jar -C feeding /", everything was working smoothly.
 
Carlos Borges
Greenhorn
Posts: 8
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I realized that I have made a mistake. I should put a dot after all:
"jar -cvf mods/zoo.animal.feeding.jar -C feeding/ ."

This is how is presented in the book and it works fine too.
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic