JDK based Pack200 works but not Ant Pack200 Tasks

Hi,
In My project, I was earlier using JDK Toolkit based Pack200 Utility and It was working fine for me. As each time user has to set JDK Bin path (C:\Program Files\Java\jdk1.6.0_02\bin) in System variables to run batch file so I switched to Ant based tasks through (https://java-pack200-ant-task.dev.java.net/ ) for Pack200 but it does not work fine.
I came across Following Issues.
#1. I have around 60 Jar files which earlier I was Repacking / packing through Batch file with Jdk based Pack200 support and it worked fine
Repack:
pack200 repack segment-limit=-1 %(JarFileLocation)\(FileName)
Pack:
pack200 --segment-limit=-1 %(JarFileLocation)\ FileName.pack.gz %(JarFileLocation)\(FileName)
#2. Now I switched to Ant Based Pack200 tasks and used following targets. Repacking goes fine but
At time of Packing, I am getting Exception. �java.lang.SecurityException: SHA digest error�.
I experimented with adding some of Attributes like Effort=1 or 0 but it does not work.
There is no difference what I was doing earlier with Jdk based Pack200 and now with Ant based
Pack200 tasks then why I am getting Exception and how it can be eliminated?
<target name="p200">
<taskdef name="pack200"
classname="com.sun.tools.apache.ant.pack200.Pack200Task"
classpath="${library}/Pack200Task.jar"/>
<taskdef name="unpack200"
classname="com.sun.tools.apache.ant.pack200.Unpack200Task"
classpath="${library}/Pack200Task.jar"/>
</target>
Repack:
<target name="RepackFile" depends="p200">
<pack200 src="${fileId}"
destfile="${fileId}${.pack}"
repack="Yes"
segmentlimit="-1"
/>
</target>
Pack:
<target name="PackFile" depends="p200">
<pack200 src="${fileId}"
destfile="${fileId}${.pack.gz }"
gzipoutput="yes"
segmentlimit="${segmentlimit}"
/>
</target>

Hi,
In My project, I was earlier using JDK Toolkit based Pack200 Utility and It was working fine for me. As each time user has to set JDK Bin path (C:\Program Files\Java\jdk1.6.0_02\bin) in System variables to run batch file so I switched to Ant based tasks through (https://java-pack200-ant-task.dev.java.net/ ) for Pack200 but it does not work fine.
I came across Following Issues.
#1. I have around 60 Jar files which earlier I was Repacking / packing through Batch file with Jdk based Pack200 support and it worked fine
Repack:
pack200 repack segment-limit=-1 %(JarFileLocation)\(FileName)
Pack:
pack200 --segment-limit=-1 %(JarFileLocation)\ FileName.pack.gz %(JarFileLocation)\(FileName)
#2. Now I switched to Ant Based Pack200 tasks and used following targets. Repacking goes fine but
At time of Packing, I am getting Exception. �java.lang.SecurityException: SHA digest error�.
I experimented with adding some of Attributes like Effort=1 or 0 but it does not work.
There is no difference what I was doing earlier with Jdk based Pack200 and now with Ant based
Pack200 tasks then why I am getting Exception and how it can be eliminated?
<target name="p200">
<taskdef name="pack200"
classname="com.sun.tools.apache.ant.pack200.Pack200Task"
classpath="${library}/Pack200Task.jar"/>
<taskdef name="unpack200"
classname="com.sun.tools.apache.ant.pack200.Unpack200Task"
classpath="${library}/Pack200Task.jar"/>
</target>
Repack:
<target name="RepackFile" depends="p200">
<pack200 src="${fileId}"
destfile="${fileId}${.pack}"
repack="Yes"
segmentlimit="-1"
/>
</target>
Pack:
<target name="PackFile" depends="p200">
<pack200 src="${fileId}"
destfile="${fileId}${.pack.gz }"
gzipoutput="yes"
segmentlimit="${segmentlimit}"
/>
</target>

Similar Messages

Maybe you are looking for

  • SOAP SENDER - test in soapui

    Hi I have SOAP sender. my user has created a wsdl and provided this to me. I have uploaded this in ESR and done a SOAP - PI - abap PROXY scenario To test this scenario, should I download the sender agreement and consume within SOAPUI and proceed the

  • How can I find out how many subscribers my podcast has?

    Hi..ive been searching everywhere and i cant seem to find this simple answer...i want to know how many people are subscribed (or downloaded) my podcast..i use garageband and iweb to post my podcasts and here is my webpage > http://web.mac.com/jona7

  • In  dev_server0.out file , i found this folowing error, why its came like

    HI Friends,              i found this below information in dev_server.out file . please could anybody please tell me why this problem came. i am doing only running and try to deploy the webdynpro java application. please reply me  why it showing this

  • Can we get rid of "redirecting number in IE" message for CER 911 calls?

    Hi There, Cisco CUCM version 8.03, CER 8.5, DMS-100 PRI, MGCP configured with "Redirecting number in IE-Outbound" option checked on gateway. When we do 911 tests with CER involved, the voice gateway receiving the redirecting number in IE---911 messag

  • ECATT field value as constant?

    Hello Guru's, I am updating thousands of records using eCATT.  How should i declare a field value as constant while creating a eCATT script it self,  so that it automatically picks that value and  update the records. I should not mention the field va