<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Java Classes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977312#M35906</link>
    <description>&lt;BR /&gt;For DCL commands (create,copy,rename etc.) You need also &lt;BR /&gt;  SET PROCESS /PARSE=extended&lt;BR /&gt;to avoid converting filenames to uppercase.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Apr 2007 09:24:31 GMT</pubDate>
    <dc:creator>Joseph Huber_1</dc:creator>
    <dc:date>2007-04-17T09:24:31Z</dc:date>
    <item>
      <title>Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977302#M35896</link>
      <description>Hello,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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). &lt;BR /&gt;&lt;BR /&gt;When I execute the command "java helloOpenVMS", It throws an exception "Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)"&lt;BR /&gt;&lt;BR /&gt;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? &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pallavi</description>
      <pubDate>Mon, 09 Apr 2007 05:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977302#M35896</guid>
      <dc:creator>Pallavi Akundi</dc:creator>
      <dc:date>2007-04-09T05:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977303#M35897</link>
      <description>Pallavi,&lt;BR /&gt;&lt;BR /&gt;This is way to little info to go by!&lt;BR /&gt;&lt;BR /&gt;Some questions first:&lt;BR /&gt;&lt;BR /&gt;Alpha or IA64?&lt;BR /&gt;VMS version?&lt;BR /&gt;Java version?&lt;BR /&gt;ODS-2 or ODS-5 disks?&lt;BR /&gt;&lt;BR /&gt;I have some suspicions, but without that info, it will by too much wild-guessing.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Mon, 09 Apr 2007 06:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977303#M35897</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-04-09T06:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977304#M35898</link>
      <description>You have to work in an ODS-5 disk environment.&lt;BR /&gt;Check with your system manager how he can assign / move your files to a ODS-5 home on the system.&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Mon, 09 Apr 2007 07:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977304#M35898</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-09T07:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977305#M35899</link>
      <description>And if you can't have a ODS-5 disk, just dedicate some blocks from a disk to a LD device.&lt;BR /&gt;&lt;BR /&gt;@sys$startup:ld$startup&lt;BR /&gt;LD create ldxxxx:...&lt;BR /&gt;Just init /struct=5 ldxxxx: /nohigh/maximum...&lt;BR /&gt;mount ld...</description>
      <pubDate>Mon, 09 Apr 2007 08:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977305#M35899</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2007-04-09T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977306#M35900</link>
      <description>You should be able to do it simply with&lt;BR /&gt;&lt;BR /&gt;$ java "helloOpenVMS"&lt;BR /&gt;&lt;BR /&gt;ie. quotes just around the class name.&lt;BR /&gt;Of course, you should also make sure your .class file is in your current directory, or in your classpath.&lt;BR /&gt;&lt;BR /&gt;There is documentation on the VMS web site on how to use Java on VMS which would help you get started with this.</description>
      <pubDate>Mon, 09 Apr 2007 23:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977306#M35900</guid>
      <dc:creator>Chris Barratt</dc:creator>
      <dc:date>2007-04-09T23:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977307#M35901</link>
      <description>Hello Jan, Hein and Labadie,&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies. To get started,&lt;BR /&gt;&lt;BR /&gt;Alpha or IA64? - Alpha&lt;BR /&gt;VMS version? - 7-3.2&lt;BR /&gt;Java version? - 1.4.2&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Chris, Thanks, I will have to try the $ java "helloOpenVMS" and will post back what I get.&lt;BR /&gt;&lt;BR /&gt;Thanks :)&lt;BR /&gt;Pallavi</description>
      <pubDate>Tue, 10 Apr 2007 12:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977307#M35901</guid>
      <dc:creator>Pallavi Akundi</dc:creator>
      <dc:date>2007-04-10T12:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977308#M35902</link>
      <description>Pallavi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 10 Apr 2007 12:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977308#M35902</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-04-10T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977309#M35903</link>
      <description>I don't think this is a filename issue. The problem is that the JVM cannot find the class. Hence by putting the name of the class in quotes, you can supply the correctly cased class name to the JVM.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;I have ben able to run Java on ODS-2 disks, once I worked out this fact.&lt;BR /&gt;&lt;BR /&gt;It's been a while, though...&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 21:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977309#M35903</guid>
      <dc:creator>Chris Barratt</dc:creator>
      <dc:date>2007-04-11T21:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977310#M35904</link>
      <description>Also, be sure to have logical names DECC$ARGV_PARSE_STYLE and DECC$EFS_CASE_PRESERVE defined to "ENABLE". The Java SDK User Guide has more details about proper setup of your environment.&lt;BR /&gt;&lt;BR /&gt;Hans.</description>
      <pubDate>Thu, 12 Apr 2007 05:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977310#M35904</guid>
      <dc:creator>H_Bachner</dc:creator>
      <dc:date>2007-04-12T05:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977311#M35905</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am really sorry for this great delay in response. I had to face some connectivity issues at my end and could not test.&lt;BR /&gt;&lt;BR /&gt;But this is what I found and it is interesting.&lt;BR /&gt;&lt;BR /&gt;I wrote a sample Java program with a class helloOpenVMS&lt;BR /&gt;&lt;BR /&gt;Case 1 : In the ODS-2 Disk&lt;BR /&gt;&lt;BR /&gt;The file is stored as HELLOOPENVMS.JAVA;1&lt;BR /&gt;$javac VOLXXX:[XXX]HELLOOPENVMS.JAVA&lt;BR /&gt;&lt;BR /&gt;Throws an error: class helloOpenVMS is public, should be declared in a file named helloOpenVMS.java&lt;BR /&gt;&lt;BR /&gt;$set def VOLXXX:[XXX]&lt;BR /&gt;$javac HELLOOPENVMS.JAVA&lt;BR /&gt;&lt;BR /&gt;The program is compiled.&lt;BR /&gt;&lt;BR /&gt;$java helloOpenVMS&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)&lt;BR /&gt;&lt;BR /&gt;$java helloopenvms&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)&lt;BR /&gt;&lt;BR /&gt;$java "helloOpenVMS"&lt;BR /&gt;&lt;BR /&gt;works!&lt;BR /&gt;&lt;BR /&gt;Case 2 : In the ODS-5 Disk&lt;BR /&gt;The file is stored as HELLOOPENVMS.JAVA;1&lt;BR /&gt;$javac VOLXXX:[XXX]HELLOOPENVMS.JAVA&lt;BR /&gt;&lt;BR /&gt;Throws an error: class helloOpenVMS is public, should be declared in a file named helloOpenVMS.java&lt;BR /&gt;&lt;BR /&gt;$set def VOLXXX:[XXX]&lt;BR /&gt;$javac HELLOOPENVMS.JAVA&lt;BR /&gt;&lt;BR /&gt;The program is compiled.&lt;BR /&gt;&lt;BR /&gt;$java helloOpenVMS&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)&lt;BR /&gt;&lt;BR /&gt;$java helloopenvms&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: helloopenvms (wrong name: helloOpenVMS)&lt;BR /&gt;&lt;BR /&gt;$java "helloOpenVMS"&lt;BR /&gt;&lt;BR /&gt;works!&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977311#M35905</guid>
      <dc:creator>Pallavi Akundi</dc:creator>
      <dc:date>2007-04-17T05:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Java Classes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977312#M35906</link>
      <description>&lt;BR /&gt;For DCL commands (create,copy,rename etc.) You need also &lt;BR /&gt;  SET PROCESS /PARSE=extended&lt;BR /&gt;to avoid converting filenames to uppercase.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-java-classes/m-p/3977312#M35906</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2007-04-17T09:24:31Z</dc:date>
    </item>
  </channel>
</rss>

