• 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

Error Java Heap Space

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there. I have created an application via Eclipse that allows a user to click on a button and launch the Crystal Reports Viewer JRC. Whenever I run this through Eclipse, or outside of Eclipse on my machine, it works perfectly. However, when my users try to click the button to view the report, it sits there for about 5 minutes and then comes up with the following error message:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Java heap space----Error code 2147467259 Error code name:failed

I would naturally assume this has something to do with them not having enough memory on their machines..... and I have read that I should try to increase the maximum heap size. My question is..... do I really have to go to each user's machine and increase the heap size or can I somehow package this into my jar file through Eclipse so it will automatically increase the size when the run the jar?

Any help is greatly appreciated!
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one of the reasons why many Java applications are launched from scripts (*.bat files on Windows, shell scripts on Linux) - the script provides a convenient location to specify the heap size and other JVM options.
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic