[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with jarwrapper: "Error! CRCs do not match!"



On 25/08/11 07:10, Niels Thykier wrote:
> On 2011-08-24 23:30, Tomasz Muras wrote:
>> Hi All,
>>
>>> [...]
>> No, I don't.
>>
>> Now, I can reproduce the error when doing the following:
>> * using debian/javabuild with:
>> javatut.jar src
>> * using debian/manifest with:
>> usr/share/javatut/javatut.jar:
>>  Main-Class: net.zabuchy.Main
>>
>> But as soon as I remove debian/javabuild and debian/manifest and build
>> with debian/rules:
>> %:
>>   dh $@ --with javahelper
>>
>> override_dh_auto_build:
>>   jh_build -mnet.zabuchy.Main javatut.jar src
>>
>> everything works just fine. Any thoughts?
>>
>> Tomek
>>
>>
> 
> Does it come back if you use jh_manifest to set the main class?

Yes, jh_manifest is to blame:
% ./javatut.jar
Hello world
% jh_manifest -cnet.zabuchy.Main javatut.jar
% ./javatut.jar
Error! CRCs do not match! Got 1a6cd7b3, expected 0

Tomek


Reply to: