MCPcopy Create free account
hub / github.com/Firebasky/Java / CommandExecution

Class CommandExecution

JNI/src/main/java/org/javaweb/jni/CommandExecution.java:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.io.File;
4
5public class CommandExecution {
6
7 static {
8 System.setProperty("java.library.path","D:\\library\\");
9 System.loadLibrary("cmd");
10// System.loadLibrary("cmd");
11 }
12 public static native String exec(String cmd);
13
14 public static void main(String[] args) {
15 exec("calc");
16// System.out.println((File.separatorChar));
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected