Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

how to run a java .class file with command line arguments from the console

$
0
0
Hello,
How can I pass (command line) arguments to a .class file when starting it from the console? The public static void main(String[]) method of my class parses its arguments to set parameters of the device being simulated, and to determine what simulation tasks to perform. When called from within the desktop (i.e. no arguments given), it pops up a window to ask the user for these arguments - but as the next step I would like to run this class from the command line, specifying all parameters and tasks as command line options. Can this be done?
I have 4.3b
Thank you
Daniel

[edit: I know how to pass command line args to a java program, but I guess with comsol I do not run these .class file as "java myclass.class arg1 arg2...", but with comsolbatch]

Viewing all articles
Browse latest Browse all 26527

Trending Articles