Do it like:
java -Xms256m -Xmx512m -Djava.awt.headless=true -jar filename.jar
More Related Contents:
- foo(int) is not applicable for the arguments (String)
- Real differences between “java -server” and “java -client”?
- How do I set the proxy to be used by the JVM
- Memory address of variables in Java
- Java – Get a list of all Classes loaded in the JVM
- What is the default encoding of the JVM?
- What is the difference between JVM, JDK, JRE & OpenJDK?
- Why I can’t create an array with large size?
- Java Command line arguments
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Which one is undefined
- Setting JVM heap size at runtime
- Registering multiple keystores in JVM [duplicate]
- What does -XX:MaxPermSize do?
- What does a JVM have to do when calling a native method?
- Does Java guarantee that Object.getClass() == Object.getClass()?
- How to set JVM parameters for Junit Unit Tests?
- out in System.out.println()
- Java “Virtual Machine” vs. Python “Interpreter” parlance?
- Distinguishing between Java threads and OS threads?
- JVM sending back memory to OS [duplicate]
- Clarification of meaning new JVM memory parameters InitialRAMPercentage and MinRAMPercentage
- What’s the penalty for Synthetic methods?
- Garbage collection on intern’d strings, String Pool, and perm-space
- Java: non-heap-memory analyzes
- Understanding metaspace line in JVM heap printout
- What is the size of methods that JIT automatically inlines?
- Analyzing of x86 output generated by JIT in the context of volatile
- How do I use the JAVA_OPTS environment variable?
- effect of changing String using reflection
- Eclipse EXCEPTION_ACCESS_VIOLATION crash