- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Problem with Java Classes
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
тАО04-08-2007 10:30 PM
тАО04-08-2007 10:30 PM
We have recently installed JAVA on our VMS server. I am facing a peculiar problem with running JAVA programs. I am not able to name class files with case sensitive names.
Eg: I cannot have a class like "public class helloOpenVMS" because when the class file is compiled, it is being named HELLOOPENVMS.CLASS by the VMS operating system (in all caps).
When I execute the command "java helloOpenVMS", It throws an exception "Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)"
Is it that we cannot use case sensitive names in JAVA with VMS or is there a way in which I can change this behavior by changing some system settings?
Regards,
Pallavi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2007 11:41 PM
тАО04-08-2007 11:41 PM
Re: Problem with Java Classes
This is way to little info to go by!
Some questions first:
Alpha or IA64?
VMS version?
Java version?
ODS-2 or ODS-5 disks?
I have some suspicions, but without that info, it will by too much wild-guessing.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 12:29 AM
тАО04-09-2007 12:29 AM
Re: Problem with Java Classes
Check with your system manager how he can assign / move your files to a ODS-5 home on the system.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 01:06 AM
тАО04-09-2007 01:06 AM
Re: Problem with Java Classes
@sys$startup:ld$startup
LD create ldxxxx:...
Just init /struct=5 ldxxxx: /nohigh/maximum...
mount ld...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 04:40 PM
тАО04-09-2007 04:40 PM
Solution$ java "helloOpenVMS"
ie. quotes just around the class name.
Of course, you should also make sure your .class file is in your current directory, or in your classpath.
There is documentation on the VMS web site on how to use Java on VMS which would help you get started with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 05:04 AM
тАО04-10-2007 05:04 AM
Re: Problem with Java Classes
Thanks for the replies. To get started,
Alpha or IA64? - Alpha
VMS version? - 7-3.2
Java version? - 1.4.2
ODS-2 or ODS-5 disks? - We have some ODS-5 disks and some ODS-2, I have been trying this on the ODS-2.. I will have to try this on the ODS 5 disks.
Chris, Thanks, I will have to try the $ java "helloOpenVMS" and will post back what I get.
Thanks :)
Pallavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 05:09 AM
тАО04-10-2007 05:09 AM
Re: Problem with Java Classes
ODS-2 does not do mixed case or lower-case filenames, so you must use an ODS-5 disk for storing the JAVA class file.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2007 02:06 PM
тАО04-11-2007 02:06 PM
Re: Problem with Java Classes
From what I have seen, when it then looks for files containing the class, it does not worry about case of filenames. It compares what is in the quotes, with what is in the class (or your original .java code).
I have ben able to run Java on ODS-2 disks, once I worked out this fact.
It's been a while, though...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2007 10:52 PM
тАО04-11-2007 10:52 PM
Re: Problem with Java Classes
Hans.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2007 10:42 PM
тАО04-16-2007 10:42 PM
Re: Problem with Java Classes
I am really sorry for this great delay in response. I had to face some connectivity issues at my end and could not test.
But this is what I found and it is interesting.
I wrote a sample Java program with a class helloOpenVMS
Case 1 : In the ODS-2 Disk
The file is stored as HELLOOPENVMS.JAVA;1
$javac VOLXXX:[XXX]HELLOOPENVMS.JAVA
Throws an error: class helloOpenVMS is public, should be declared in a file named helloOpenVMS.java
$set def VOLXXX:[XXX]
$javac HELLOOPENVMS.JAVA
The program is compiled.
$java helloOpenVMS
Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)
$java helloopenvms
Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)
$java "helloOpenVMS"
works!
Case 2 : In the ODS-5 Disk
The file is stored as HELLOOPENVMS.JAVA;1
$javac VOLXXX:[XXX]HELLOOPENVMS.JAVA
Throws an error: class helloOpenVMS is public, should be declared in a file named helloOpenVMS.java
$set def VOLXXX:[XXX]
$javac HELLOOPENVMS.JAVA
The program is compiled.
$java helloOpenVMS
Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)
$java helloopenvms
Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)
$java "helloOpenVMS"
works!
The quotes technique definitely works. I could not decipher why the compilation fails when the complete path is specified but works when I set default to that directory and run the compile command.
I am not a VMS admin person so may be this question sounds silly. The file names are always stored in all caps on my system. Whereas in the newly installed ODS-5 disks, some names like the names of some folders in the CSW server (for which i had the ODS-5 installed in the first place) are stored preserving the case (in small case). But if I create a new file in the same ODS-5 disk, it has the name in all caps! Why does this happen?
As Info the logical for DECC$ARGV_PARSE_STYLE is not defined on my machine whereas, the logical for DECC$EFS_CASE_PRESERVE has been set to "TRUE"