Page 2 of 2 FirstFirst 12
Results 21 to 33 of 33
  1. #21
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,529
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Hibernate View Post
    Can you go over the standard value?
    And what is the standard value?
    You can go up as high as your machine can handle. I guess the 'standard' value is 256 mega bytes, but I don't know for sure ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  2. #22
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    197
    Rep Power
    4

    Default

    Thanks guys, this problem is sloved.
    I have a small related problem, when it comes to creating jar.
    I know how to create and run them. But when creating the file, how do I decide which class that should run when I try to run the jar(by editing the manifest file)?

  3. #23
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,529
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Pojahn_M View Post
    Thanks guys, this problem is sloved.
    I have a small related problem, when it comes to creating jar.
    I know how to create and run them. But when creating the file, how do I decide which class that should run when I try to run the jar(by editing the manifest file)?
    Put a line in your manifest file such as:

    Java Code:
    Main-Class: YourMainClass
    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #24
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Quote Originally Posted by JosAH View Post
    You can go up as high as your machine can handle. I guess the 'standard' value is 256 mega bytes, but I don't know for sure ...

    kind regards,

    Jos
    256 MB does not make sense both in Windows and GNU/Linux one of by programs use at least (not at least, but when its activity is normal, i.e. if you are actually using it) 300 MB, without that parameter.
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

  5. #25
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,529
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Hibernate View Post
    256 MB does not make sense both in Windows and GNU/Linux one of by programs use at least (not at least, but when its activity is normal, i.e. if you are actually using it) 300 MB, without that parameter.
    I told you I wasn't sure about that value; maybe 512MB? (the machine code itself takes up some space as well).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #26
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    197
    Rep Power
    4

    Default

    final question, is there a software that create jar files?
    Winrar is effective when it comes to unpacking jar files.
    Using cmd is ineffective and old-style. Btw cmd does not even find my manifest file when creating jar.

  7. #27
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,447
    Rep Power
    25

    Default

    software that create jar files
    I use the jar command from a batch file on XP.

  8. #28
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Quote Originally Posted by JosAH View Post
    I told you I wasn't sure about that value; maybe 512MB? (the machine code itself takes up some space as well).

    kind regards,

    Jos
    From the horses mouth:
    "
    Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. You can override this default using the -Xmx command-line option.
    "
    So Hibernate has a box with at least 1.2G on it.

  9. #29
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,529
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Tolls View Post
    From the horses mouth:
    "
    Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. You can override this default using the -Xmx command-line option.
    ".
    Nice; thanks for the quote and link, I didn't know that (or had forgotten all about it ;-) I never had any problems with the default maximum heap size ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  10. #30
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    I remember having problems pre 5, when it was only 64Mb.
    Xmx was our friend back then.

  11. #31
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Quote Originally Posted by Tolls View Post
    From the horses mouth:
    "
    Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. You can override this default using the -Xmx command-line option.
    "
    So Hibernate has a box with at least 1.2G on it.

    Well, yes… I do have a non-obsolete computer…
    But is swap included or not?
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

  12. #32
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,529
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Hibernate View Post
    Well, yes… I do have a non-obsolete computer…
    But is swap included or not?
    1.2GB isn't that much and no, swap space is not included because Java doesn't know if swap space is even switched on. It isn't even a per process value.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  13. #33
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Good, swap should not be included.

    Yes, 1.2 GB is not that much, it is rather small…
    Ex animo! Hibernate
    Java, Arch Linux, C, GPL v3, Bash, Eclipse, Linux VT, GNOME 2 and many buttons on windows.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Import your own package
    By Umi in forum New To Java
    Replies: 4
    Last Post: 02-15-2010, 09:05 AM
  2. How to import a Java package?
    By tyang in forum New To Java
    Replies: 4
    Last Post: 02-06-2010, 09:14 PM
  3. Help Needed to import package
    By gradStudent in forum New To Java
    Replies: 10
    Last Post: 08-11-2009, 01:37 AM
  4. How to import a package before it is compiled
    By gradStudent in forum Advanced Java
    Replies: 1
    Last Post: 08-11-2009, 12:17 AM
  5. How to import a package in Eclipse?
    By naipulb in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 11:04 AM

Posting Permissions

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