Horje
run jar file Code Example
compile jar file command
jar cvf example.jar *
how to run java program with external jar files in command prompt
javac -cp "<File-Path>.jar;." <filename>.java
java -cp "<File-Path>.jar;." <filename>
run jar file
java -jar yourFile.jar
run jar file with different jre
First, go to the location of the java installation file. By default, this is:
C:\Program Files\Java\...
Open the folder of the java version you want and go to the bin folder.
Copy the directory your at then go to your command line. 
Syntax: (%PATH% is path you copied):
"%PATH%/java.exe" [javaArgs] [filePath] [yourCodeArgs]
java load jar at runtime
URLClassLoader child = new URLClassLoader(
        new URL[] {myJar.toURI().toURL()},
        this.getClass().getClassLoader()
);
Class classToLoad = Class.forName("com.MyClass", true, child);
Method method = classToLoad.getDeclaredMethod("myMethod");
Object instance = classToLoad.newInstance();
Object result = method.invoke(instance);




Shell

Related
angular full installation guide Code Example angular full installation guide Code Example
man in linux Code Example man in linux Code Example
command line list files Code Example command line list files Code Example
git how to commit changes to a new branch Code Example git how to commit changes to a new branch Code Example
screen to gif Code Example screen to gif Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11