- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Java Problem using "-V"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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-02-2005 06:13 AM
тАО05-02-2005 06:13 AM
Java Problem using "-V"
$ java "com.app.cmdlin.AppCmd" lck -l -pwdfile SYS$COMMON:[HOME]PASSWORD.TXT -p user@10.20.23.20:33333/CTS/CTS/MVII FILENAME.DAT
and this works fine.
I will need to input much longer command lines, so I wrote the portion of the line that follows тАШjavaтАЩ into a file called command.dat:
" com.app.cmdlin.AppCmd " lck -l -pwdfile SYS$COMMON:[HOME]PASSWORD.TXT -p user@10.20.23.20:33333/CTS/CTS/MVII FILENAME.DAT
I then executed the following:
$ java "-V" command.dat
This time I get the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: "com/app/cmdlin/AppCmd" lck -l -pwdfile SYS$COMMON:[HOME]PASSWORD/TXT -p user@10/20/23/20:33333/CTS/CTS/MVII FILENAME.DAT
Note that the periods in the class name, password file parameter (PASSWORD.TXT) and even the IP address have all been replaced with slashes. I read through the User Guide that came with the SDK, but none of the notes there seem to relate to this problem. Can you tell me how to succeed with the java тАЬ-VтАЭ command?
Many th
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2005 09:03 PM
тАО05-02-2005 09:03 PM
Re: Java Problem using "-V"
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2005 09:52 PM
тАО05-02-2005 09:52 PM
Re: Java Problem using "-V"
Try to remove quotes from the class name:
com.app.cmdlin.AppCmd lck -l -pwdfile SYS$COMMON:[HOME]PASSWORD.TXT -p user@10.20.23.20:33333/CTS/CTS/MVII FILENAME.DAT
The quotes are required in the command line, because DCL change all nonquoted characters in uppercase and than the C runtime (in which java is written) changes all nonquoted characters in lowercase.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2005 09:02 AM
тАО05-06-2005 09:02 AM
Re: Java Problem using "-V"
There are so many logicals involved I hoped to avoid an endless trial-and-error approach.
I tried removing the quotes from the class name and that did not help. However, it forced me to focus on the error message itself instead of the mangled filenames. I now realize I'm getting a NoClassDefFound error. That's got to be a clue!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2005 09:12 PM
тАО05-07-2005 09:12 PM
Re: Java Problem using "-V"
replacing dot by slash sounds like filename conversion. Look at this:
vms filename -> [dir1.dir2.dir3]file.ext
unix filename -> dir1/dir2/dir3/file.ext
It appears parser try to convert input parameters in unix syntax.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 06:36 PM
тАО05-09-2005 06:36 PM
Re: Java Problem using "-V"
There is some discussion on the subject, I think. Look for the string "Using White Space Within "-V" Data Files".
This document also explains a lot of the logicals.
HTH
Willem
OpenVMS Developer & System Manager