cmd - Trying to run a Java program from the command prompt -
i'm trying run program via command prompt
java analis.arno txts.txt 550 here code:
static painter p; public static void main(string[] args) throws numberformatexception, exception { p = new painter(args[0]); p.paintmodulestatisticbyage(null, integer.parseint(args[1]), 10, 80); } when run "run config" works, command prompt, get:
filenotfoundexception
so when run run config in eclipse, relative path starts in project folder, jar file path starts in directory jar file lives.
let's assume structure:

when run eclipse, base directory tmp. if go command line tmp\out , run java analis.arno txts.txt 550, base directory tmp\out , not tmp.
Comments
Post a Comment