<?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: Java programs on HP-UX don't execute in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081946#M92137</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;What about JAVAPATH or JAVA_PATH&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Wed, 10 Oct 2007 16:50:17 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-10-10T16:50:17Z</dc:date>
    <item>
      <title>Java programs on HP-UX don't execute</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081943#M92134</link>
      <description>Hi,&lt;BR /&gt;I have a HP-UX 11i V2 and we installed Java1.5 on it. &lt;BR /&gt;I also set the CLASSPATH and the PATH variables as per the HP-UX documentation. Just to be sure I set both PATH and CLASSPATH as '/opt/java1.5/bin' and then I did an 'export PATH' and 'export CLASSPATH' as follows:&lt;BR /&gt;'PATH=$PATH:.:/opt/java1.5/bin:/op&lt;BR /&gt;t/java1.5/jre/lib:/opt/java1.5'&lt;BR /&gt;'CLASSPATH=.:/opt/java1.5/bin:/opt/java1.5:/opt/java1.5/jre/lib&lt;BR /&gt;export CLASSPATH'&lt;BR /&gt;I am unable to compile java code from my user home. It keeps saying "java.lang.Error: Properties init: Could not determine current working directory".&lt;BR /&gt;Then when I try to compile it from the java source (that is /opt/java1.5/bin/&amp;gt;javac helloworld.java -d /home/project/username) it creates a .class file with no compilation errors. But when I try to run this .class file (that is opt/java1.5/bin&amp;gt;java /home/project/username/helloworld) it gives me an error 'Exception in thread "main" java.lang.NoClassDefFoundError: /home/project/username/helloworld.&lt;BR /&gt;I checked this helloworld program on my Windows machine and it works fine. &lt;BR /&gt;Kindly reply with a soln. I would be glad to give more infomation if needed.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 05 Oct 2007 10:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081943#M92134</guid>
      <dc:creator>eeriehunk</dc:creator>
      <dc:date>2007-10-05T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Java programs on HP-UX don't execute</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081944#M92135</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Check this link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forum.java.sun.com/thread.jspa?threadID=571464" target="_blank"&gt;http://forum.java.sun.com/thread.jspa?threadID=571464&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma</description>
      <pubDate>Fri, 05 Oct 2007 13:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081944#M92135</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-10-05T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java programs on HP-UX don't execute</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081945#M92136</link>
      <description>Well, you were reading the documentation, so that was your first mistake ...&lt;BR /&gt;&lt;BR /&gt;First, for the CLASSPATH variable, I would set it to 'CLASSPATH=.'.  CLASSPATH only pertains to the location of .class files, and the other stuff isn't needed.  Java will always find the core system classes.&lt;BR /&gt;&lt;BR /&gt;However, the compile error 'could not determine the current working directory' is not a problem with the classpath; it looks more like a problem with the shell environment.  For some reason, it seems the process cannot determine what the current working directory (".") is or cannot read the directory.  When you compile using an absolute path with the "-d" option, this is avoided, because it over-rides the CLASSPATH.  Either something is wrong with the shell or something is funny about the directory permissions.&lt;BR /&gt;&lt;BR /&gt;The run-time error is a bit different.  The JRE will ONLY look at the CLASSPATH environment variable, and interprets the command line as the name of a Java class.  In this case, it is looking for a class named "/home/project/username/helloworld", in the current CLASSPATH, which is different than looking for a file named "/home/project/username/helloworld.class".&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2007 16:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081945#M92136</guid>
      <dc:creator>Ben Dehner</dc:creator>
      <dc:date>2007-10-10T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Java programs on HP-UX don't execute</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081946#M92137</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;What about JAVAPATH or JAVA_PATH&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 10 Oct 2007 16:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081946#M92137</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-10-10T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java programs on HP-UX don't execute</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081947#M92138</link>
      <description>Assuming this problem pertains more to HPUX environment, I posted the above issue there and it was resolved. It was the problem with the class path. Thank you for your response.&lt;BR /&gt;Regards,&lt;BR /&gt;eeriehunk&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Oct 2007 09:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-programs-on-hp-ux-don-t-execute/m-p/4081947#M92138</guid>
      <dc:creator>eeriehunk</dc:creator>
      <dc:date>2007-10-16T09:38:40Z</dc:date>
    </item>
  </channel>
</rss>

