Fedora Linux Support Community & Resources Center
  #1  
Old 10th October 2004, 07:59 AM
normanfung Offline
Registered User
 
Join Date: Oct 2004
Posts: 1
jar -u option unimplemented

I was trying to update a EAR (jar) file:

[root@localhost somefolder]# ls
bugs packaging-build.xml StockEJB.jar xdoclet-build.xml
index.jsp pages StockWeb.war
merge Stock.ear
META-INF StockEJB-client.jar WEB-INF
[root@localhost somefolder]# jar -uf Stock.ear StockEJB.jar
jar: `-u' mode unimplemented.

What does it mean by "-u mode unimplemented"? Where can I get a jar tool that supports -u option? btw, it's a Fedora box.

Thanks!
Reply With Quote
  #2  
Old 10th October 2004, 10:47 AM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Try "jar --help" for a list of options. But jar is a Java 2 SDK took, it is not related to FC2. If you need to upgrade the j2sdk, try visiting http://java.sun.com. JDk 5.0 (Tiger) is now available.
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #3  
Old 10th October 2004, 05:43 PM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
None of the command-line JAR tools that I've used support the update option. Why this is, I don't know. You're safer off recreating the EAR file anyway, from the command-line. I strongly advocate the usage of ANT, which does allow you to update JAR-based files. (Go figure).
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #4  
Old 10th October 2004, 10:46 PM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Quote:
Originally Posted by crackers
None of the command-line JAR tools that I've used support the update option.
Don't they? That's weird, because j2sdk reports:
Code:
Usage: jar {ctxuV}[vfm0ME@] [jar-file] [manifest-file] [-C dir] files
(...)
-u              update existing archive
(...)
I didn't try, but the option is there in the help text.
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #5  
Old 11th October 2004, 12:15 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
It's been there for a long time - it just don't work. And the manifest files have been "broken" for at least four years (allow multiple Class-Path lines). I'm guessing not enough people have *****ed about these "minor" annoyances to raise the visibility of them.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
Reply

Tags
jar, option, unimplemented

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is my option? malikmaz Installation and Live Media 3 24th April 2005 10:28 PM
log out only option? pirofwil Using Fedora 6 23rd July 2004 10:03 AM


Current GMT-time: 21:11 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat