• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAI- How do i load a high resolution Image??

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am trying to load an image and perform some basic transformations on it. The image resolution is 6800*4400.. this i s aJPEG image.
When i execute my program i get the following error message.

Error one factory fails for the operation "jpeg"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
.
.
.
.
.
.

Caused by:java.lang.OutofMemoryError: Java heap space

Has anyone come across this? Please can someone help with this?

Thanks
Gaurav
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So have you used the -XmxNNm Java command-line switch to increase the amount of available Java heap memory?
 
Gaurav Pawar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well i am using eclipse.... i have developed a small image viewer app that does rotation , zoom and magnification. Is there a way by which i could increase the Java heap memory from the code itself. The reason being if i decide to run the code on different machine i do not want to execute commands each time.

Thanks in advance,
Gaurav.





>So have you used the -XmxNNm Java command-line switch to increase the >amount of available Java heap memory?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic