How to pass VM arguments to main method
807589Jul 24 2008 — edited Jul 24 2008Hi All,
I am calling main class from other main class and it work fine, the problem is in the second main i use some encoding which i need to pass from the first main.
class MainMenu {
-
-
-
// call the loadFiles main
lodFiles.main(new String[] { "utf-8"} );
-
-
-
}
I am usinfg Eclipse , in VM arguments I put " utf-8" if I run the program directly the program work correctly , If I call loadFiles from other class MainMenu there is problem becasue i am not passing the VM argumnts correctly to loadFiles.
any idea?
Edited by: farag_ahmed@yahoo.com on Jul 24, 2008 10:25 AM