how to run java project using batch file -
i have written java project contains 1 class.
i want run on pc's using batch file.
please advise me how this. class contains parameters running.
i organize them in such way:
scanner in = new scanner(system.in); system.out.println("enter value1: "); value1 = double.parsedouble(in.nextline());
path java c:\program files\java\jdk1.7.0_09\bin
project in eclipse workspace.
i need add want see in cmd output "enter value1: " , have possibility set value during execution.
you need write batch file mentioned here:
"%java_home%\bin\java" -cp "path of class files" nameofyourclass
Comments
Post a Comment