Java programs can run on any system that has a Java platform installed, and the syntax is as follows:
Java-jar <program.jar>
-jar This parameter is necessary, followed by your Java program, for example, our side is
Java-jar/home/biosoft/genomeanalysistk-1.6-13/genomeanalysistk.jar ...
The absolute path is recommended here when referencing the program location, and in addition to the-jar parameter, there is a frequently used parameter that is used to set the-XMX parameter of the memory limit , as follows:
Java-xmx<size>-jar ...
The size of this side can be in M, G and so on units, such as
Java-xmx4g-jar/home/biosoft/genomeanalysistk-1.6-13/genomeanalysistk.jar ...
It means that the maximum amount of memory is limited to 4G, for processing some larger files, you can appropriately increase this value a bit, to improve the efficiency of operations or to prevent the low-memory program cannot run.
Original source:
Nowind Blog: http://blog.sina.com.cn/s/blog_6721167201018fyw.html
Use of Java programs