i want to execute a jar in the console, if the jar doesn't depend external jars, the following command will done.
C:/>java -jar test.jar
but if it depends external jars, we should add a line in MANIFEST.MF of jar. like:
Manifest-Version: 1.0
Class-Path: lib/jconn2.jar lib/jTDS2.jar
Sealed: true
Main-Class: com.stefli.test.Test
that means you should collect the jars into a lib folder.
C:/>java -jar test.jar
but if it depends external jars, we should add a line in MANIFEST.MF of jar. like:
Manifest-Version: 1.0
Class-Path: lib/jconn2.jar lib/jTDS2.jar
Sealed: true
Main-Class: com.stefli.test.Test
that means you should collect the jars into a lib folder.