你的意思是怎么运行一个文件吧?
把所需要的class文件压缩成jar文件(java自带)。
写一个批处理文件:
eg:
C:\jdk1.3\bin\javaw.exe -classpath "C:\TServer\lib\TSManager.jar;C:\TServer\lib\common.jar;

解决方案 »

  1.   

    the java tutorial有些相关资料:
    When the runtime environment needs to load a new class for an application, it looks for the class in the following locations, in order: 
    Bootstrap classes: the runtime classes in rt.jar and internationalization classes in i18n.jar. 
    Installed extensions: classes in JAR files in the lib/ext directory of the JRE. 
    The class path: classes, including classes in JAR files, on paths specified by the system property java.class.path. If a JAR file on the class path has a manifest with the Class-Path attribute, JAR files specified by the Class-Path attribute will be searched also. By default, the java.class.path property's value is ., the current directory. You can change the value by setting the CLASSPATH environment variable or by using the -classpath or -cp command-line options. These command-line options override the setting of the CLASSPATH environment variable. Note that in the Java 1.2 software, java.class.path no longer includes the bootstrap classes in rt.jar and i18n.jar.
    到相关网址有更详细的介绍:
    http://java.sun.com/docs/books/tutorial/ext/basics/load.html
      

  2.   

    谢谢,各位了!
    Youloveme(爱情和尚):我明白了~~