Ant 'NoClassDefFoundError’ and using fork option

I encountered a strange issue while trying to execute build tasks through Ant tool,this is related to the java target.
i got an exception 'NoClassDefFoundError’,it seems to an error in one of the classes in sun.reflect package,i have no clue on how to fix this error,but after doing some research ,i came to know that its always the best practice to run the Java code in a seperate JVM,To achieve this Ant tool has provided you a parameter named 'fork',which upon setting as 'true' has solved the issue !!!
 <java classname="xxxxx" fork="true">

Basically this will use a new JVM to run the code,thereby reducing the chances of running out of memory  issues too.
you can verify how to  Suppress warnings in Ant

Comments

Popular posts from this blog

BCC site status inaccessible Agent Production in error state

Weblogic Issues during EAR Deployment Exception in AppMerge flows progression

Add a shopping cart button to the product page