HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Comman line argument in JAVA on VMS
Operating System - OpenVMS
1828047
Members
2082
Online
109973
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 11:27 PM
05-15-2006 11:27 PM
Comman line argument in JAVA on VMS
hi,
i am using the VMS operating System. I am running Java Application on it. I have created a small program which reads three command line arguments and uses them in program.
Can anyone kindly tell me, how can i declare the command line arguments ?
i need the syntax.
the code is running fine on windows.
java "read" login password filename
i am using the above mentioned command but its not working.
i am using the VMS operating System. I am running Java Application on it. I have created a small program which reads three command line arguments and uses them in program.
Can anyone kindly tell me, how can i declare the command line arguments ?
i need the syntax.
the code is running fine on windows.
java "read" login password filename
i am using the above mentioned command but its not working.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 03:33 AM
05-16-2006 03:33 AM
Re: Comman line argument in JAVA on VMS
And "it[']s not working" means what, exactly?
Guess-work begins here.
You may need to quote command-line arguments
if the case is important. If that's the
problem, SET PROCESS /PARSE_STYLE = EXTENDED
might help, but I don't use Java enough to
know if that'll do everything you need.
Guess-work begins here.
You may need to quote command-line arguments
if the case is important. If that's the
problem, SET PROCESS /PARSE_STYLE = EXTENDED
might help, but I don't use Java enough to
know if that'll do everything you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 09:13 PM
05-16-2006 09:13 PM
Re: Comman line argument in JAVA on VMS
Ravi,
it should be the same commandline argument passing as under Windows (String[] args).
Please elaborate on what's not working as expected.
cu,
Martin
it should be the same commandline argument passing as under Windows (String[] args).
Please elaborate on what's not working as expected.
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 09:10 PM
06-14-2006 09:10 PM
Re: Comman line argument in JAVA on VMS
Try the following:
$ define java$classpath -
path_to_jar:my_jar.jar, -
path_to_jar:log4j_1_2_8.jar, -
path_to_jar:commons-logging_1_0_3.jar, -
path_to_jar:commons-cli_1_0.jar, -
path_to_jar:commons-pool-1-2.jar, -
path_to_jar:commons-dbcp-1-2-1.jar, -
path_to_jar:commons-beanutils_1_7.jar, -
path_to_jar:commons-digester-1_7.jar
$ !
$ on error then goto error_point
$ !
$ java -cp $java$classpath -
"myprogram.main" -
--spring "''myconfig_xml'" -
--update -
--outcsvfile "''my_file'.csv_tmp" -
--date "''use_date'"
$ !
$ set noon
$ !
We use commons-cli in the Java to read in command line parameters and the above gives examples of different uses.
NB the above is only an example not a working system.
$ define java$classpath -
path_to_jar:my_jar.jar, -
path_to_jar:log4j_1_2_8.jar, -
path_to_jar:commons-logging_1_0_3.jar, -
path_to_jar:commons-cli_1_0.jar, -
path_to_jar:commons-pool-1-2.jar, -
path_to_jar:commons-dbcp-1-2-1.jar, -
path_to_jar:commons-beanutils_1_7.jar, -
path_to_jar:commons-digester-1_7.jar
$ !
$ on error then goto error_point
$ !
$ java -cp $java$classpath -
"myprogram.main" -
--spring "''myconfig_xml'" -
--update -
--outcsvfile "''my_file'.csv_tmp" -
--date "''use_date'"
$ !
$ set noon
$ !
We use commons-cli in the Java to read in command line parameters and the above gives examples of different uses.
NB the above is only an example not a working system.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP