Skip to main content

Please fix that corrupt manifest file.

7 replies [Last post]
mac_systems
Offline
Joined: 2003-11-18

Well,

some people already know that the manifest in swingx is corrupt. Could someone fix that in time __please__ ?

I played around with it, removing the manifest is not that best solution as i want to add the SwingX into Netbeans palette.

I also tried to repair the file, may im too stupid for that. everytime ANT stumble over it "Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Java-Bean"
"

Thanks,
Jens

Message was edited by: mac_systems

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kleopatra

Hi Jens,

can't reproduce your problem (running the build.xml from Eclipse as
external ant tool) and don't know enough about the dirty details of
manifests, so just a couple of random commments:

>
> some people already know that the manifest in swingx is corrupt. Could someone fix that in time __please__ ?
>

Hmm, why do you think it's corrupt? Taken on face value the syntax looks
okay to me: there's a raw manifest.mf in swingx which is "enriched"
during a build by inserting version, creation and other configuration
attributes into its main section. While the "X-Comment" attribute is (?
my guess) non-standard it should not have much of an impact, spec says:

"Attributes which are not understood are ignored."

The raw manifest doesn't end with a linefeed a required, but that
shouldn't have any effect way up in the file (?).

>
> I also tried to repair the file, may im too stupid for that. everytime ANT stumble over it "Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Java-Bean"
> "

It looks as if for some reason, the start of the first individual
section is not recognized correctly. Could that be a line-break thingy,
maybe cross-platform differences? The raw manifest has a rather uncommon
"0A0D0A" instead of the (win-world typical) "0D0A0D0A". But then,
probably not - all LF, CR and CR-LF are allowed according to spec.

Clueless ... sorry.

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

mac_systems
Offline
Joined: 2003-11-18

Hi Kleopatra,

today i made a checkout on a new and clean maschine with latest Netbeans release.

SwingX comes with all files needed to test,compile,package right ?

I tried to build the project, again without luck. As SwingX is an netbeans project i can simply use the compile button, anytime i get the same failure:

init:
deps-clean:
Deleting directory C:\workspace\swingx\swingx\build
Deleting directory C:\workspace\swingx\swingx\dist
clean:
init:
deps-jar:
Created dir: C:\workspace\swingx\swingx\build\classes
Compiling 299 source files to C:\workspace\swingx\swingx\build\classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 111 files to C:\workspace\swingx\swingx\build\classes
compile:
Created dir: C:\workspace\swingx\swingx\dist
Building jar: C:\workspace\swingx\swingx\dist\swingx.jar
Manifest is invalid: Manifest sections should start with a "Name" attribute and not "X-COMMENT"
C:\workspace\swingx\swingx\nbproject\build-impl.xml:323: Invalid Manifest: C:\workspace\swingx\swingx\manifest.mf
BUILD FAILED (total time: 4 seconds)

I haven't installed ANT on the Comandline at this moment, i think i will get the same problems.

Kleopatra

jdnc-interest@javadesktop.org wrote:
>
> I tried to build the project, again without luck.

sorry, but I have nothing to add since last time, no way to reproduce
your problems (neither using netbeans nor mac), so I have no further
ideas. Richard, maybe?

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Noel Grandin

The error comes from the following ANT class
org.apache.tools.ant.taskdefs.Manifest

Looks like some kind of bizarre line ending problem.

Jeanette, I checked the manifest file in a hex editor, and all I see are
standard line ending sequences (0x0d, 0x0a)

Jens, exactly what versions of Java and Netbeans are you using?

-- Noel Grandin

Kleopatra wrote:
> jdnc-interest@javadesktop.org wrote:
>>
>> I tried to build the project, again without luck.
>
> sorry, but I have nothing to add since last time, no way to reproduce
> your problems (neither using netbeans nor mac), so I have no further
> ideas. Richard, maybe?
>
> Jeanette
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>
>

NOTICE: This email, and the contents thereof,
are subject to the standard Peralex email disclaimer, which may
be found at: http://www.peralex.com/disclaimer.html

If you cannot access the disclaimer through the URL attached
and you wish to receive a copy thereof please send
an email to email@peralex.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Frederic Lavigne

On a clean checkout under Windows (made using TortoiseCVS) I get the same
issue. Looking at the manifest.mf shows extra carriage returns between Name:
and JavaBean: entries.

I ran "dos2unix" on the manifest.mf and now the build works. I've committed
the change. Hopefully it should work now.

-fred

> -----Original Message-----
> From: Noel Grandin [mailto:noel@peralex.com]
> Sent: lundi 18 septembre 2006 14:43
> To: jdnc@jdnc.dev.java.net
> Subject: Re: Please fix that corruct manifest file.
>
>
> The error comes from the following ANT class
> org.apache.tools.ant.taskdefs.Manifest
>
> Looks like some kind of bizarre line ending problem.
>
> Jeanette, I checked the manifest file in a hex editor, and all I see are
> standard line ending sequences (0x0d, 0x0a)
>
> Jens, exactly what versions of Java and Netbeans are you using?
>
> -- Noel Grandin
>
> Kleopatra wrote:
> > jdnc-interest@javadesktop.org wrote:
> >>
> >> I tried to build the project, again without luck.
> >
> > sorry, but I have nothing to add since last time, no way to reproduce
> > your problems (neither using netbeans nor mac), so I have no further
> > ideas. Richard, maybe?
> >
> > Jeanette
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> > For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
> >
> >
>
>
> NOTICE: This email, and the contents thereof,
> are subject to the standard Peralex email disclaimer, which may
> be found at: http://www.peralex.com/disclaimer.html
>
> If you cannot access the disclaimer through the URL attached
> and you wish to receive a copy thereof please send
> an email to email@peralex.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

mac_systems
Offline
Joined: 2003-11-18

Yeah, finally it works. Thanks Frederic. :)

mac_systems
Offline
Joined: 2003-11-18

Its me again,

today i checked some of my warnings in my ant file.

SwingX.jar depends on MultipleGradientPaint.jar. Ok, no big deal. But if you look at the manifest of the MultipleGradientPaint.jar there something i do not understand:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_05-48 ("Apple Computer, Inc.")
Main-Class: colorzoo.Main
Class-Path: lib/swing-layout-1.0.jar lib/swing-layout-0.7.jar
X-COMMENT: Main-Class will be added automatically by build

As far as i know there is now Colorzoo in SwingX. So theres no need to point a reference to it. The second bad path element my ant script produces results in the missing
swing-layout-0.7.jar

regards,
Jens