sh文件执行问题

小小黑yangw19820 2006-06-09 02:58:25
我的bkdata.sh文件内容为
exec java -cp bkdata_mysql.jar;mm.mysql-2.0.4-bin.jar Overcell& > log2.txt
在UNIX上输入sh bkdata.sh执行时出现如下提示,请问是不是sh内的格式不对,该怎么写呢,请问各高手
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
-d32
use a 32-bit data model if available
-d64
use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp -classpath <directories and zip/jar files separated by :>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
...全文
281 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
我不清楚你说的是那里的写错了,麻烦说细一点行不
linaxing 2006-06-10
  • 打赏
  • 举报
回复
-cp -classpath <directories and zip/jar files separated by :>
说文件之间以:分割,你的命令行中显然以;作分隔符了。
linaxing 2006-06-09
  • 打赏
  • 举报
回复
java 命令格式错了,你是不是把:写成;了?

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧