Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    I use a shortcut to execute the jar files that require more memory. I put the command line in the Target: field. I copied the value of one shortcut's Target field into post#14.
    There may be...
  2. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    80M is not very much
    try a larger value: 1024M
  3. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    I do not know how to set any options for the java command in the IDE.
    For testing, use the command prompt window like back in post#5.
    Put the -X option immediately after the java command. For...
  4. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    11MB and 16MB would not be a problem. Why is the jarfile so large?

    The doc for the java command: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
    see the -X... options...
  5. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    What is the total size in bytes of the files your code is trying to load? Does the JVM have enough space to hold it all?
  6. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    What is the contents of the filePath variable?
    If this is it: /Art/Sprites/Effects/CartoonExplosion.gif
    Then does the jar file have that file on that path?

    You can view a jar file's contents...
  7. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    What does the code at line 330 do? What argument is it passing to the ImageIO.read() method?


    The location of files is different when running from Eclipse. The code is probably looking outside...
  8. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    You need to change directory to be in the folder where the Platformer.jar file is located so the java command can find it.
  9. Replies
    17
    Views
    840

    Re: Extract Java project as runnable jar file?

    Can you open a command prompt window, and enter the command:
    java -jar <the jarfile name>.jar
    Hopefully any error messages will display in the console window
    Copy the contents of the command...
Results 1 to 9 of 9