Skip to Content
Developing Java Beans
book

Developing Java Beans

by Robert Englander
June 1997
Intermediate to advanced
318 pages
8h 17m
English
O'Reilly Media, Inc.
Content preview from Developing Java Beans

An Alternative to the jar Program

The jar program that comes with the JDK certainly does its job, but it definitely has some drawbacks. As your JAR files grow larger, it’s probably going to become a nuisance that you can’t add or delete entries individually, and having to deal with a separate manifest file is an inconsistency waiting to happen. Finally, in the world of graphical user interfaces, the jar program leaves you wishing for more.

The people at The Open Group have created a visual JAR file tool called MoaJar that addresses the drawbacks I just discussed. You can download MoaJar from their web site at http://www.opengroup.org/RI/DMO/moajar/index.html. The Open Group is making MoaJar freely available, so I highly recommend taking a look. The source code even comes with it, and you are permitted to develop a commercial product from it as long as you include their copyright.

MoaJar has a few added features that make it well worth the effort of downloading it from the Web:

  • Add, remove, extract, or rename a file in the JAR

  • Edit the name/value attributes in the JAR manifest

  • Create a serialized object from any class in the JAR or on the CLASSPATH

  • Edit the properties of a serialized object in the JAR

Figure 6.1 shows what the MoaJar user interface looks like. A list box contains all of the entries in the JAR file. When you select one, the edit area below the list allows you to edit the manifest contents—you can add, delete, or modify attribute/value pairs associated with the entry. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Hands-On Cloud-Native Applications with Java and Quarkus

Hands-On Cloud-Native Applications with Java and Quarkus

Francesco Marchioni
Hands-On Enterprise Java Microservices with Eclipse MicroProfile

Hands-On Enterprise Java Microservices with Eclipse MicroProfile

Cesar Saavedra, Heiko W. Rupp, Jeff Mesnil, Pavol Loffay, Antoine Sabot-Durand, Scott Stark

Publisher Resources

ISBN: 1565922891Catalog PageErrata