I need to run a JAR file from the command prompt. Basically I need to use the following command on startup: java -jar jar-file-name.jar, but how?
Some more details:
I need a program launcher that will launch my program in cmd. Example code:
class hello_world{
  public static void main(String args[])
  {
    System.out.println("Hello World!");
  }
}
How can I run this automatically in cmd without using java -jar jar-file-name.jar?
 
     
     
     
     
    