aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes java.lang.OutOfMemoryError while compiling xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "java.lang.OutOfMemoryError while compiling xsd" Watch "java.lang.OutOfMemoryError while compiling xsd" New topic
Author

java.lang.OutOfMemoryError while compiling xsd

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,

I am running a build.xml which actually compiles the .xsd files by using the <xmlbean> task. I am using xbean.jar to compile xsd files. While doing so, it is giving this error.



By using the above error, i could conclude that i need to increase the memory size. But i am not sure how to set the PermSize

Can anyone tell how this can be done ? Thanks


Cheers,
Richard
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I googled "Java set perm size" and found several answers... Or are you unsure how to apply this to Ant?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Yes. I am not sure how to set this through Ant.

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You should be able to modify the ant.bat script in the $ANT_HOME/bin directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError while compiling xsd
 
Similar Threads
xmlBean Problem
XMLBean Extensions
XmlBean validation
Axis2 XMLBean Duplicate global element Error
[xmlbean] scomp giving me an exception: java.io.IOException: CreateProcess