Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] AdBookWorkaround
- Date: Fri, 18 Mar 2005 15:40:47 +0900
- From: "Lyle (Hiroshi) Saxon" <ronfaxon@example.com>
- Subject: Re: [tlug] AdBookWorkaround
- References: <4223D66D.3050902@example.com> <42379401.6040108@example.com> <423798CD.6020302@example.com> <4237A64D.1080405@example.com> <20050317204617.0d0bfa21@example.com> <423A41E2.2030204@example.com> <423A5658.4040205@example.com> <423A5C08.9020901@example.com> <20050318062113.GJ22849@example.com>
- Organization: Images Through Glass
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217
Christopher SEKIYA wrote: >>[LHS] Any tips or links where I can find out how to rebuild the jar? >> >> > >file FILENAME.jar > > Am I on the right track with this?: e383. Writing a JAR File Manifest to a File The format of a manifest file is described in: http://java.sun.com/products/jdk/1.2/docs/guide/jar/manifest.html This example retrieves the manifest from a JAR file and writes the manifest contents to a file. try { // Open the JAR file JarFile jarfile = new JarFile(/"filename.jar"/); // Get the manifest Manifest manifest = jarfile.getManifest(); // Write the manifest to a file OutputStream fos = new FileOutputStream(/"manifest"/); jarfile.getManifest().write(fos); fos.close(); } catch (IOException e) { } Here's an example of a manifest file: Manifest-Version: 1.0 Specification-Title: Java Platform API Specification Specification-Version: 1.4 Implementation-Title: Java Runtime Environment Implementation-Version: 1.4.0-rc Created-By: 1.4.0-rc (Sun Microsystems Inc.) Implementation-Vendor: Sun Microsystems, Inc. Specification-Vendor: Sun Microsystems, Inc. Name: javax/swing/JScrollPane.class Java-Bean: True Name: javax/swing/JCheckBoxMenuItem.class Java-Bean: True Name: javax/swing/JTabbedPane.class Java-Bean: True Name: javax/swing/JMenuItem.class Java-Bean: True Name: javax/swing/JTable.class Java-Bean: True
- Follow-Ups:
- Re: [tlug] AdBookWorkaround
- From: Jean-Christian Imbeault
- References:
- [tlug] AdBookWorkaround
- From: Lyle (Hiroshi) Saxon
- Re: [tlug] AdBookWorkaround
- From: Lyle (Hiroshi) Saxon
- Re: [tlug] AdBookWorkaround
- From: Jean-Christian Imbeault
- Re: [tlug] AdBookWorkaround
- From: Lyle (Hiroshi) Saxon
- Re: [tlug] AdBookWorkaround
- From: Botond Botyanszki
- Re: [tlug] AdBookWorkaround
- From: Lyle (Hiroshi) Saxon
- Re: [tlug] AdBookWorkaround
- From: Jean-Christian Imbeault
- Re: [tlug] AdBookWorkaround
- From: Lyle (Hiroshi) Saxon
- Re: [tlug] AdBookWorkaround
- From: Christopher SEKIYA
Home | Main Index | Thread Index
- Prev by Date: [tlug] Nero - Interesting?
- Next by Date: Re: [tlug] AdBookWorkaround
- Previous by thread: Re: [tlug] AdBookWorkaround
- Next by thread: Re: [tlug] AdBookWorkaround
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links