Use of Java programs

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.