Public class HelloWorld {
public static void Main (string[] args) {
System.out.println ("Hello World!");
}
}
#!/bin/ksh
echo "--------helloWorld------->>"
Java_home= "/usr/jdk/jdk1.6.0_34"
Java_options= "-hotspot-xms128m-xmx512m"
Class_path=.;. /lib;
Java-jar Helloworld.jar
Note:The class that runs the main method is specified in the MANIFEST.MF in the jar package:Main-class:com.test.developersybasetestIf additional jar packages are requ
Just started learning the Linux shell language recently
It's the private dish of Brother Bird. There are two ways to execute a shell script:
1. Set execution properties: chmod 755 file
Execute (if already in current directory):./file
2. Use: Sh File execution
. But the Ubuntu 11.10 installed in VMware is not performing
#!/bin/bash
declare-i S for
((i = 1; I
Occurs when executed with the second method:
Test04_for.sh:1: Declare:not foundTes
Label: #! /bin/bash
#auto Bakcup MySQL db
Bak_dir=/data/backup/mysql/' Date +%y-%m-%d ' mysql_db=Database name MYSQL_PW=Password Mysql_usr=User name Mysqlcmd=/usr/bin/mysqldumpif[$UID-ne 0];then#must be run with the root user, $UID as a system variableEcho"This script must be executed by the root user"exit fiif[!-D $BAK _dir];then#If this directory does not existMkdir-p $BAK _dir#CreateEcho"\033[32m Create directory Success \033[0m"
ElseEcho"This directory already exists"fi $ mysqlcmd-u$mysql_us
Original article: http://blog.chinaunix.net/uid-20539088-id-115759.html
On mini2440-/bin/sh: Command: Not found SolutionI transplanted the Linux kernel and the file system according to the mini-2440 porting manual. What's different is that the cross compiler I use is the latest 4.4.1, instead of the Cross Compiler provided by tianyinao technology, when I have transplanted the yaffs file system and want to write a helloworld program to test it on the D
Shell programming is annotated with "#", but "#! /Bin/sh ", but not. "#! /Bin/sh "is the shell declaration, indicating that you are using the shell type and its path. If no declaration is made, the script will be executed in the default shell. The default shell is defined by the user's system as the shell for executing the shell script. if the script is written to run in the Korn shell ksh and the C shell C
This file must be executed before compiling the Android system. In addition to configuring the android compiling environment, you can see the text in the first few lines of its code:
Invoke ". Build/envsetup. Sh" from your shell to add the following functions to your environment:-Croot: Changes directory to the top of the tree.-M: makes from the top of the tree.-Mm: builds all of the modules in the current directory.-Mmm: builds all of the modules in
The original post of kimihong's blog isHttp://blog.csdn.net/kimihong/article/details/7523892
This file must be executed before compiling the Android system. In addition to configuring the android compiling environment, you can see the text in the first few lines of its code:
Invoke ". Build/envsetup. Sh" from your shell to add the following functions to your environment:-Croot: Changes directory to the top of the tree.-M: makes from the top of the tre
Addnode. sh failed, log file error PRKC-1025 java. lang. OutOfMemoryError: Java heap space,Environment:
Linux 5.5 + RAC 11203
Problem description:
The command to add a cluster member is as follows:
$ GRID_HOME/oui/bin/addNode. sh-silent "CLUSTER_NEW_NODES = {X3850AR}" "CLUSTER_NEW_PRIVATE_NODE_NAMES = {X3850AR-priv}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES = {X3850AR-vip }"
The following error is reported:
Instanti
/U01/app/Oracle/product/11.2.0/dbhome_1/root. sh
Running Oracle 11g root. sh script...
The following environment variables are set:
ORACLE_OWNER=Oracle
ORACLE_HOME=/U01/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to/usr/local/bin...
The file "oraenv" already exists in/usr/local/bin. Overwrite it? (Y/n)
[N]: y
Copying or
CentOS7 crontab is not executed. Error/bin/sh: root: command not found, centos7crontab
When you use CentOS7 to execute the scheduled script, an error is returned:
/bin/sh: root: command not found
The problem is that the file/var/spool/cron/root does not need to be written as root.
The modified script:
[root@localhost cron]# crontab -l*/10 * * * * perl /home/awstats/wwwroot/cgi-bin/awstats.pl -update -c
Full backup SH file: exp_comp.sh
Rq = 'date + "% m % d "'
Su-oracle-c "exp system/manager full = y inctype = complete file =/oracle/export/db_comp $ rq. dmp"
Cumulative backup SH file: exp_cumu.sh
Rq = 'date + "% m % d "'
Su-oracle-c "exp system/manager full = y inctype = cumulative file =/oracle/export/db_cumu $ rq. dmp"
SH file for Incremental Backup: exp_incr.
Introduced:1 OpeningThe program must start with the following line (must be in the first line of the file):#!/bin/shThe symbol #! is used to tell the system that the parameter behind it is the program used to execute the file. In this example we use/BIN/SH to execute the program.When writing a script, you must also make it executable if you want to execute the script.To make the scripting executable:Compile chmod +x filename so you can use./filename t
This site article is Li Himi original, reproduced must be clearly noted:Reprinted from "Black Rice gamedev Block" original link: http://www.himigame.com/react-native/2315.htmlHimi recently encountered command/bin/sh failed with exit code 1 error in a real machine run, the emulator runs without any problems. This issue has been resolved, where the solution is shared.First look at the error log, such as:650) this.width=650; "class=" Alignnone size-mediu
Recently, when cygwin is used on Windows to install NS2. The following is a solution. Please forget it.
Pango1.0.sh exit code 1
Http://sourceforge.net/mailarchive/forum.php? Set = custom viewmonth = viewday = forum_name = cygwin-ports-General Style = nested submit = change + View
[Cygwin-ports-General] pango1.0.sh exit code 1From: Martin Baute
Hi there, recently we did a
Write a shell script from Windows Sublime, move to Linux, find an error,/bin/sh^m:bad interpreter:no such file or directory cause: This is caused by different system encoding formats: in WI The. sh file that is edited in the ndows system may have invisible characters, so the above exception information is reported in the Linux system execution. Resolution: 1) under Windows conversion: Use some editors such
If. Not in path, to execute the executable file in the current directory , use the full path:./executable-filePath is an environment variable, and if the current directory "./" is added to the environment variable, then you can also use "./" to directly enter an executable file with executable permissions in the current directory to run theIf you want to execute a SH script, regardless of whether the script has executable permissions, you can use:sh [
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