运行jar时,使用 java -jar 文件名.jar

运行jar时,使用 java -jar 文件名.jar


参考答案和解析
正确

相关考题:

下列( )类属于java.util.jar 包。A.GZIPInputStreamB.ZipInputStreamC.JarInputSreamD.InflaterlnputStream

We drop a piece of metal into a jar full of water, the metal will float if it weighs less than______.A. an equal amount of silverB. an equal amount of goldC. all the water in the jar nowD. the water that leaves the jar

如果想在tomcat服务器启动时将Jar包加载到内存,且该Jar包可以被tomcat服务器上所有的应用使用,应该将该jar包复制到tomcat的__________目录。 A、commonB、ServerC、common\libD、server\lib

Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()A.Jar AB.Jar BC.Jar CD.Jar DE.Jar E

不同模块需要相同jar包,解决期间jar包重复引用问题,其操作中包含下面哪几项() A.新建一个公共模块B.扩展jar包C.要使用引入jar包时,要先依赖公共模块D.在这个公共模块里引入第三方jar包

下列说法错误的有()A.能被java.exe成功运行的javaclass文件必须有main()方法B.J2SDK就是JavaAPIC.Appletviewer.exe可利用jar选项运行.jar文件D.能被Appletviewer成功运行的javaclass文件必须有main()方法

java classpath设置问题,跪求高手解答! .;%JAVA_HOME%/lib/tools.jar;1.最前面那个点是干什么用的?2.tools.jar有哪些重要的类?多谢!

下列选项中,用于解压jar文件的命令是() A.jar –cB.jar –xC.jar –vD.jar -f

下列用于Java解析类文件的命令是( )。A.javaB.javacC.javapD.jar

A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()A、The JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.B、The JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.C、TheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.D、The JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.E、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.F、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.

不同模块需要相同jar包,解决期间jar包重复引用问题,其操作中包含下面哪几项()A、新建一个公共模块B、扩展jar包C、要使用引入jar包时,要先依赖公共模块D、在这个公共模块里引入第三方jar包

Java语言的编译器命令是()A、javacB、javaC、javawD、jar

运行jar文件中class文件需要在java命令后面加的参数为()。A、-cpB、-gC、-dD、-verbose

JAVA程序包括源代码(.java文件)、()、由归档工具jar生成的.jar文件、对象状态序列化.ser文件。

You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()A、The TLD must be located within the WEB-INF directory of the JAR file.B、The TLD must be located within the META-INF directory of the JAR file.C、The TLD must be located within the META-INF/tld/ directory of the JAR file.D、The TLD must be located within a subdirectory of WEB-INF directory of the JAR file.E、The TLD must be located within a subdirectory of META-INF directory of the JAR file.

A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()A、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/javaB、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jarC、Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jarD、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/javaE、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jarF、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar

Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?() A、 Jar AB、 Jar BC、 Jar CD、 Jar DE、 Jar E

A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar.  Which three, taken independently, will allow the developer to use the Paper class while compiling the Bookclass?()A、The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.B、The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..C、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.D、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.E、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - cp /foo/myLib.jar/Paper Book.java.F、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - classpath /foo/myLib.jar Book.java

单选题Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?()A Jar AB Jar BC Jar CD Jar DE Jar E

多选题You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()AThe TLD must be located within the WEB-INF directory of the JAR file.BThe TLD must be located within the META-INF directory of the JAR file.CThe TLD must be located within the META-INF/tld/ directory of the JAR file.DThe TLD must be located within a subdirectory of WEB-INF directory of the JAR file.EThe TLD must be located within a subdirectory of META-INF directory of the JAR file.

多选题A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()AThe JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.BThe JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.CTheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.EThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.FThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.

多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.BThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..CThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.EThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -cp /foo/myLib.jar/Paper Book.java.FThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d /foo/myLib.jar Book.javaGThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar Book.java

多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar.  Which three, taken independently, will allow the developer to use the Paper class while compiling the Bookclass?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.BThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..CThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.EThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - cp /foo/myLib.jar/Paper Book.java.FThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - classpath /foo/myLib.jar Book.java

单选题A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:java games.cards. Poker What allows the user to do this?()Aput Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/javaBput Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jarCput Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jarDput Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java

多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jarBThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jarCThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.classDThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jarEThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac –cp /foo/myLib.jar/Paper Book.javaFThe JAR file is located at foo/myLib.jar and the Book class is compiled using javac –classpath /foo/myLib.jar Book.java

单选题运行jar文件中class文件需要在java命令后面加的参数为()。A-cpB-gC-dD-verbose

单选题A class games.cards.Poker is correctly defined in the jar file Poker.jar.  A user wants to execute the main method of Poker on a UNIX system using the command:  java games.cards.Poker  What allows the user to do this?()A put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/javaB put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jarC Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jarD put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/javaE put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuffijava/*.jarF put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar

填空题JAVA程序包括源代码(.java文件)、()、由归档工具jar生成的.jar文件、对象状态序列化.ser文件。