Home > Operation and Maintenance > Linux Operation and Maintenance > Example of multiplication table implemented by shell script

Example of multiplication table implemented by shell script

零下一度
Release: 2017-06-30 15:31:35
Original
3350 people have browsed it

#Declaration script

#!/bin/bash

#Print "------cfb------- --"
echo "------cfb---------"

#java environment variable
JAVA_HOME=/ usr/java/jdk1.8.0_11
CLASSPATH=$JAVA_HOME/bin

#Specify the location where the jar package needs to be executed, you can set it yourself

JARPATH=/home/haha/Desktop

#Standard format of environment variables

CLASSPATH=$CLASSPATH:$JARPATH/cfb.jar

#export is used to set or add environment variables, and is limited to this login operation. If you don’t write it, the main class cannot be found

export CLASSPATH=$CLASSPATH

#Print environment variables
echo $CLASSPATH

#Execute the main method in jingdian.CfbDemo class
java -Xms50m -Xmx250m jingdian. CfbDemo

#Exit

exit

Final printing effect

The above is the detailed content of Example of multiplication table implemented by shell script. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template