Closed Thread
Results 1 to 2 of 2

Thread: Heap Space and Executable JAR Files

  1. #1
    Ambuoroko is offline Newbie
    Join Date
    Mar 2008
    Posts
    1
    Rep Power
    0

    Heap Space and Executable JAR Files

    Hello everyone. I am working on a research project, creating a Java program which does authorship attribution (more info at jgaap.com if you are interested). We are distributing this program to interested researchers for testing as an executable jar file. The problem is that when performing statistical analysis on very large files, we often run out of heap space. From the command line, we fix this with something like:

    java -Xmx1024m jgaap

    which provides sufficient heap space for most of our needs. I have been searching for a way to embed this additional heap space in the executable jar itself, but have thus far been unsuccessful. Does anyone know if there is a way to create an executable jar with additional reserved heap space (like the -Xmx command-line option)?

    Thanks,
    Ambuoroko

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Heap Space and Executable JAR Files

    Most Java programs I use have a .bat or .sh file that specifies that as part of the call.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to make jar files executable
    By mutago in forum Java Help
    Replies: 2
    Last Post: 08-03-2011, 08:31 AM
  2. search for executable files
    By zhenya in forum Linux Programming and Scripting
    Replies: 2
    Last Post: 04-13-2011, 02:37 PM
  3. Intermediate Store Executable (or other kind of file) Inside your Executable and Execute it
    By LuthfiHakim in forum Pascal and Delphi Tutorials
    Replies: 0
    Last Post: 01-23-2011, 12:35 PM
  4. Replies: 6
    Last Post: 06-14-2010, 04:11 PM
  5. Self Executable Files
    By ryansithe in forum Java Help
    Replies: 5
    Last Post: 06-14-2010, 05:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts