FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 07-04-2008, 04:38 AM
Florian Grandel
 
Default Question concerning jh_manifest

Hi Matthew,

I am currently trying to use your jh_manifest script. I have the
following problem however:


The standard ant jar task creates a manifest with an empty line at the
end. If I apply jh_manifest this empty line remains untouched and leads
to the following MANIFEST.MF (jh_manifest added the lines starting with
Main-Class and below):


"Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 4.2.3 (Ubuntu 4.2.3-2ubuntu6) (Free Software Foundation, I
nc.)

Main-Class: com.kirkk.analyzer.textui.DOTSummary
Debian-Java-Home: /usr/lib/jvm/java-gcj
Class-Path: /usr/share/java/bcel.jar /usr/share/java/regexp.jar
/usr/share/jaranalyzer/jaranalyzer.jar"


Executing "java -jar jaranalyzer-1.2.jar" then generates the following
error:


Exception in thread "main" java.io.IOException: invalid manifest format
at java.util.jar.Manifest.read(Manifest.java:225)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at java.util.jar.JarFile.getManifestFromReference(Jar File.java:177)
at java.util.jar.JarFile.getManifest(JarFile.java:163 )

When I manually delete the empty line, the error disappears and the main
class is correctly executed.


How do you work around this problem when building your jars with
<jar...> + jh_manifest?


Bye,

Florian


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-04-2008, 05:58 AM
Florian Grandel
 
Default Question concerning jh_manifest

Hi Matthew,

I have further researched this problem. To me it seems a (not too
trivial) bug in jh_manifest. See
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489214. Maybe better to
discuss the topic there to keep this list clean...


Cheers,

Florian


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-04-2008, 08:46 AM
Matthew Johnson
 
Default Question concerning jh_manifest

On Fri Jul 04 00:38, Florian Grandel wrote:
> The standard ant jar task creates a manifest with an empty line at the end.
> If I apply jh_manifest this empty line remains untouched and leads to the
> following MANIFEST.MF (jh_manifest added the lines starting with Main-Class
> and below):

Ah, that is, indeed, a bug. I'll fix it in the next upload

Matt
--
Matthew Johnson
 

Thread Tools




All times are GMT. The time now is 05:16 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org