File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ant, Maven and Other Build Tools
ant pack200 OutOfMemory error
Joined: Jul 07, 2005
Jun 21, 2008 17:32:00
i use eclipse 3.3
build tool to build a very large
inside build.xml i use ant task pack200 to pack large number of jar files.
when i run this on windows it worked well.
when i run same project on my Linux os i get below ant build error.
can someone please help on this ?
Buildfile: /home/othman/eclipse/workspace/Weetic_Spark/build/build.xml init: resources: base: [jar] Building jar: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/base.jar build: [copy] Copying 4 files to /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib jar: release: [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/asterisk-im-client.jar.pack [pack200] Building: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/asterisk-im-client.jar.pack [pack200] Packing with Pack200 [pack200] Source File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/asterisk-im-client.jar [pack200] Dest. File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/asterisk-im-client.jar.pack [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/asterisk-im-client.jar [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smack.jar.pack [pack200] Building: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smack.jar.pack [pack200] Packing with Pack200 [pack200] Source File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smack.jar [pack200] Dest. File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smack.jar.pack [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smack.jar [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx-debug.jar.pack [pack200] Building: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx-debug.jar.pack [pack200] Packing with Pack200 [pack200] Source File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx-debug.jar [pack200] Dest. File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx-debug.jar.pack [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx-debug.jar [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx.jar.pack [pack200] Building: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx.jar.pack [pack200] Packing with Pack200 [pack200] Source File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx.jar [pack200] Dest. File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx.jar.pack [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/smackx.jar [delete] Deleting: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/spark.jar.pack [pack200] Building: /home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/spark.jar.pack [pack200] Packing with Pack200 [pack200] Source File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/spark.jar [pack200] Dest. File :/home/othman/eclipse/workspace/Weetic_Spark/target/build/lib/spark.jar.pack BUILD FAILED /home/othman/eclipse/workspace/Weetic_Spark/build/build.xml:276: The following error occurred while executing this line: /home/othman/eclipse/workspace/Weetic_Spark/build/build.xml:286: java.lang.OutOfMemoryError: Java heap space Total time: 20 seconds
Joined: May 14, 2008
Jun 29, 2008 13:28:00
The Java heap ran out of room. Do you run Ant within the same process as Eclipse or do you have it run in a separate process (with its own JVM)? If the former, increase the heap size for Eclipse. If the latter increase the heap size for Ant.
JBoss In Action
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: ant pack200 OutOfMemory error
Eclips and Ant
javadoc problem, using ant build file
Eclipse and com.javaranch.common
[java] Java Result: 1 error
eclipse ant jarsigner error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014