java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)
where options include: -d32 use a 32-bit data model if available (此处省略一些内容) load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified image 输入javac出现下面情况: javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings (此处省略一些内容) -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime system 说明安装成功!
二:安装tomcat 版本是:apache-tomcat-6.0.18.tar.gz 将安装包拷贝到/user/local下即可 然后直接解压:tar -zxvf - apache-tomcat-6.0.18.tar.gz 解压完后会有一个与安装包同名的目录 启动tomcat :进入到bin目录里:cd /usr/local/apache-tomcat-6.0.18/bin 输入:./startup.sh 出现: Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.18 Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.18 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.18/temp Using JRE_HOME: /usr 启动成功! 代开IE输入:http://192.168.200.239:8080即可登录tomcat欢迎页面 我的虚拟机里的linux系统ip是:http://192.168.200.239, 可通过ifconfig查看系统ip 同样在/usr/local/apache-tomcat-6.0.18/bin 目录下 通过./shutdown.sh 关闭tomcat