java初学者提问(Usage: javaw)

java菜鸟提问(Usage: javaw)
下面的是什么意思?我要解决。
JScript code

Usage: javaw [-options] class [args...]
           (to execute a class)
   or  javaw [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -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 <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -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
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image



------解决方案--------------------
我的异常网推荐解决方案:java环境变量设置,http://www..net/java-other/172921.html
------解决方案--------------------
Java 在运行已编译完成的类时,是通过 java 虚拟机来装载和执行的,java 虚拟机通过操作
系统命令 JAVA_HOME\bin\java –option 来启动,-option 为虚拟机参数,JAVA_HOME 为JDK
安装路径,通过这些参数可对虚拟机的运行状态进行调整,掌握参数的含义可对虚拟机的运
行模式有更深入理解。
 
一、 查看参数列表: 
虚拟机参数分为基本和扩展两类,在命令行中输入 JAVA_HOME\bin\java 就可得到基本参数
列表,
在命令行输入 JAVA_HOME\bin\java –X 就可得到扩展参数列表。 
二、 基本参数说明:
1. -client,-server
这两个参数用于设置虚拟机使用何种运行模式,client 模式启动比较快,但运行时性能和
内存管理效率不如 server 模式,通常用于客户端应用程序。相反,server 模式启动比 client
慢,但可获得更高的运行性能。

在 windows上,缺省的虚拟机类型为 client 模式,如果要使用 server模式,就需要在启动
虚拟机时加-server 参数,以获得更高性能,对服务器端应用,推荐采用 server 模式,尤
其是多个 CPU 的系统。在 Linux,Solaris 上缺省采用 server模式。
 
2. -hotspot
含义与 client 相同,jdk1.4 以前使用的参数,jdk1.4 开始不再使用,代之以 client。
 
3. -classpath,-cp
虚拟机在运行一个类时,需要将其装入内存,虚拟机搜索类的方式和顺序如下:
 
Bootstrap classes,Extension classes,User classes。
 
Bootstrap 中的路径是虚拟机自带的 jar 或 zip 文件,虚拟机首先搜索这些包文件,用
System.getProperty("sun.boot.class.path")可得到虚拟机搜索的包名。
 
Extension 是位于 jre\lib\ext 目录下的 jar 文件,虚拟机在搜索完 Bootstrap 后就搜索该
目录下的 jar 文件。用 System. getProperty("java.ext.dirs”)可得到虚拟机使用
Extension 搜索路径。
 
User classes 搜索顺序为当前目录、环境变量 CLASSPATH、-classpath。
 
4. -classpath
告知虚拟机搜索目录名、jar 文档名、zip 文档名,之间用分号;分隔。
 
例如当你自己开发了公共类并包装成一个 common.jar 包,在使用 common.jar 中的类时,就
需要用-classpath common.jar 告诉虚拟机从 common.jar 中查找该类,否则虚拟机就会抛
java.lang.NoClassDefFoundError异常,表明未找到类定义。