
Therefore, we can say that Class-Path is given the highest priority and it overrides the CLASSPATH environment variable as well as – classpath command-line option. When we are running an executable JAR file we always notice that the Class-Path attribute in the file inside the META-INF folder. In other cases, it’s not available to all Java program which runs on the same host.Ĭommand 3: By including the jar name in the Class-Path option in the manifest One of the best advantages of using classpath command-line option is that it allows us to use every application to have its own set of JAR classpath. In this case, CLASSPATH shell variable contains the list of Jar file which is required by the application.

This option is viable when we are passing – classpath option while running our java program like java – classpath $( CLASSPATH) Main. It can be either Classpath or classpath which is similar to PATH environment variable which we can use to locate Java binaries like javaw and java command.Ĭommand 2: By including name of JAR file in -a classpath command-line option Step 5: Select the jar file from the folder where you have saved your jar fileĬommand 1: By including JAR name in CLASSPATH environment variableĬLASSPATH environment variable is not case-sensitive. Step 4: Click on libraries and click on “Add External JARs”
#Weka jar file how to#
#Weka jar file install#
#Weka jar file password#


