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:

project 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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -