Shell script call jar package print multiplication table

Source: Internet
Author: User

#声明脚本

#!/bin/bash

#打印 "------CFB---------"
echo "------CFB---------"

#java环境变量
Java_home=/usr/java/jdk1.8.0_11
Classpath= $JAVA _home/bin

#指定需要执行jar包的位置, you can set your own

Jarpath=/home/haha/desktop

#环境变量的标准格式

Classpath= $CLASSPATH: $JARPATH/cfb.jar

#export用来设置或者新增环境变量, and is limited to this logon operation, do not write, can not find the main class

Export Classpath= $CLASSPATH

#打印环境变量
Echo $CLASSPATH

#执行jingdian. The main method in the Cfbdemo class
java-xms50m-xmx250m Jingdian. Cfbdemo

#退出

Exit

Final print effect

Shell script call jar package print multiplication table

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.