Here is what needs to be done if parameter/argument want to be passed to the JAR file:
public class Convert {
public Convert() {
super();
}
public static void main(String[] args) {
try{
String inputFile = args[0];
}
catch(Exception e) {
e.printStackTrace();
}
}
}
Gadgets. Games. Apps. Tips & tricks and everything that I have experienced on my daily life
Showing posts with label jar. Show all posts
Showing posts with label jar. Show all posts
Tuesday, May 20, 2014
[JAVA] How to Run JAR file
To run jar file:
java -jar <jar file name>
java -jar <jar file name>
Subscribe to:
Posts (Atom)