Specifying -classpath or -cp overrides any setting of the CLASSPATH environment variable. Separate class path entries with colons (:). See JVMTI Command-Line Options at -classpath classpath, -cp classpath Specifies a list of directories, JAR files, and ZIP archives to search for class files. agentlib:hprof=helpSee JVMTI Agent Command-Line Options at -agentpath:pathname Loads a native agent library by full pathname. On a 64-bit capable JDK, only the Java Hotspot Server VM is supported so the - server option is implicit.įor default a Java VM selection, see Server-Class Machine Detection at -agentlib:libname Loads native agent library libname, for example: -agentlib:hprof A 64-bit capable JDK currently ignores this option and instead uses the Java Hotspot Server VM.įor default Java VM selection, see Server-Class Machine Detection at -server Selects the Java HotSpot Server VM. client Selects the Java HotSpot Client VM. In addition, the current implementations of the virtual machines support a set of nonstandard options that are subject to change in future releases. The launcher has a set of standard options that are supported in the current runtime environment. Non-option arguments after the class name or JAR file name are passed to the main function. The Java runtime searches for the startup class, and other classes used, in three sets of locations: the bootstrap class path, the installed extensions, and the user class path. If the -jar option is specified, then the first non-option argument is the name of a JAR file containing class and resource files for the application, with the startup class indicated by the Main-Class manifest header. A fully qualified class name should be used. The method declaration has the following form:īy default, the first argument without an option is the name of the class to be called. The method must be declared public and static, it must not return any value, and it must accept a String array as a parameter. It does this by starting a Java runtime environment, loading a specified class, and calling that class's main method. The java command starts a Java application. argument The arguments passed to the main function. file.jar The name of the JAR file to be called. class The name of the class to be called.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |