Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to pass VM arguments to main method

807589Jul 24 2008 — edited Jul 24 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2008
Added on Jul 24 2008
20 comments
654 views