<?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 java code structures/heirarchy.. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669040#M723024</link>
    <description>Can someone explain to me what the three different types of java program packaging are (in sysadmin terms!)&lt;BR /&gt;&lt;BR /&gt;1&amp;gt; .class&lt;BR /&gt;   /home/java/MyJava.class&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; .jar&lt;BR /&gt;   jar -tvf MyJar.jar&lt;BR /&gt;      x x x x MyJava.class&lt;BR /&gt;&lt;BR /&gt;3&amp;gt; .jar (package?)&lt;BR /&gt;   jar -tvf MyPackage.jar&lt;BR /&gt;     x x x x com/hp/api/MyJava.class&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Feb 2002 10:10:49 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-02-21T10:10:49Z</dc:date>
    <item>
      <title>java code structures/heirarchy..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669040#M723024</link>
      <description>Can someone explain to me what the three different types of java program packaging are (in sysadmin terms!)&lt;BR /&gt;&lt;BR /&gt;1&amp;gt; .class&lt;BR /&gt;   /home/java/MyJava.class&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; .jar&lt;BR /&gt;   jar -tvf MyJar.jar&lt;BR /&gt;      x x x x MyJava.class&lt;BR /&gt;&lt;BR /&gt;3&amp;gt; .jar (package?)&lt;BR /&gt;   jar -tvf MyPackage.jar&lt;BR /&gt;     x x x x com/hp/api/MyJava.class&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 10:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669040#M723024</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-02-21T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: java code structures/heirarchy..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669041#M723025</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;CLASS's:&lt;BR /&gt;A class--the basic building block of an object-oriented language such as Java--is a template that describes the data and behavior associated with instances of that class. When you instantiate a class you create an object that looks and feels like other instances of the same class. The data associated with a class or object is stored in variables; the behavior associated with a class or object is implemented with methods. Methods are similar to the functions or procedures in procedural languages such as C.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/docs/books/tutorial/getStarted/application/classdef.html" target="_blank"&gt;http://java.sun.com/docs/books/tutorial/getStarted/application/classdef.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;JAR's:&lt;BR /&gt;JAR files are packaged with the ZIP file format, so you can use them for "ZIP-like" tasks such as lossless data compression, archiving, decompression, and archive unpacking. These are among the most common uses of JAR files, and you can realize many JAR file benefits using only these basic features.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/docs/books/tutorial/jar/basics/" target="_blank"&gt;http://java.sun.com/docs/books/tutorial/jar/basics/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PACKAGE's:&lt;BR /&gt;(1) Applets Packaged in JAR Files (for browser execution)&lt;BR /&gt;(2) Applications Packaged in JAR Files&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/docs/books/tutorial/jar/basics/run.html" target="_blank"&gt;http://java.sun.com/docs/books/tutorial/jar/basics/run.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know you wanted sysadmin speak, but I haven't finished my first cup of "java" yet ;-)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 12:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669041#M723025</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-21T12:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: java code structures/heirarchy..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669042#M723026</link>
      <description>well the difference between &lt;BR /&gt;2 and 3 is a bit vague.&lt;BR /&gt;&lt;BR /&gt;A class can be put in a jar, &lt;BR /&gt;but not in a package..&lt;BR /&gt;&lt;BR /&gt;it's all that com/hp/api/thing&lt;BR /&gt;&lt;BR /&gt;that I don't really understand..!&lt;BR /&gt;&lt;BR /&gt;Thanks for the links anyway..&lt;BR /&gt;I really hate reading docs though!.. or even mans... that's what I mean by sysadmin lingo ....&lt;BR /&gt;&lt;BR /&gt;Is there such a thing as mini man pages!!!&lt;BR /&gt;&lt;BR /&gt;Great idea huh?!&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 21 Feb 2002 13:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669042#M723026</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-02-21T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: java code structures/heirarchy..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669043#M723027</link>
      <description>Mini-man pages have been implemented at M$, it's called the blue screen of death )pow(.&lt;BR /&gt;&lt;BR /&gt;A package is a jar file, and class's are usually included as part of a package.&lt;BR /&gt;&lt;BR /&gt;Applications Packaged in JAR Files - 1.1 platform&lt;BR /&gt;You can run applications that are bundled as JAR files by using the JDKTM 1.1 jre tool:&lt;BR /&gt;&lt;BR /&gt;jre -cp app.jar MainClass&lt;BR /&gt;&lt;BR /&gt;In version 1.1 of the JDK software, the -cp option prepends the app.jar file to the system classpath. MainClass identifies the class within the JAR file that is the application's entry point. (Recall that in an application, one of the classes must have a method with the signature public static void main(String[] args) that serves as entry or starting point for the application.)&lt;BR /&gt;JAR Files as Applications - 1.2 platform only&lt;BR /&gt;In version 1.2 of the JDK software, you can run JAR-packaged applications with the Java interpreter. The basic command is:&lt;BR /&gt;&lt;BR /&gt;java -jar jar-file&lt;BR /&gt;&lt;BR /&gt;The -jar flag tells the interpreter that the application is packaged in the JAR file format.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/docs/books/tutorial/jar/basics/run.html" target="_blank"&gt;http://java.sun.com/docs/books/tutorial/jar/basics/run.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I know it's weird...&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 21 Feb 2002 13:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669043#M723027</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-21T13:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: java code structures/heirarchy..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669044#M723028</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;We're clear that a jar file is analogous to a tar file. It's like a compressed archive of one or more class files. &lt;BR /&gt;&lt;BR /&gt;A Package is slightly different. The classes in a package are logically related. For example, the package com.xyz.devices.printers will contain a bunch of classes that are related to printers. While com.xyz.devices.monitors will contain classes related to monitors. &lt;BR /&gt;&lt;BR /&gt;Java has a well-defined security implementation, wherein the attributes (variables) and methods (functions) can be exposed to other classes or hidden from them.&lt;BR /&gt;1. A 'public' attribute is accessible to the whole world. &lt;BR /&gt;2. A 'private' attribute is internal to the class, and cannot be accessed by any other class. &lt;BR /&gt;3. A 'protected' attribute can be accessed by sub-classes ("children" of the class) only, not by alien classes.&lt;BR /&gt;4. All other attributes can be accessed by OTHER CLASSES IN THE PACKAGE, but not by classes that are not part of the package.&lt;BR /&gt;&lt;BR /&gt;See the code snippet below:&lt;BR /&gt;package com.abc.dummies&lt;BR /&gt;class Parent  // Parent class&lt;BR /&gt;{&lt;BR /&gt;   public Parent () {}; // Class constructor&lt;BR /&gt;   int    no_modifier = 10; // Available to the whole package&lt;BR /&gt;   private   int priv = 20; // Data internal to this class&lt;BR /&gt;   protected int prot = 30; // For use by sub-classes as well&lt;BR /&gt;   public    int  pub = 40; // For use by anyone&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The attribute Parent.no_modifier is only visible to other classes that are part of the com.abc.dummies package. This is, to my mind, the single most important reason why packages are used.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2002 09:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-code-structures-heirarchy/m-p/2669044#M723028</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-22T09:12:26Z</dc:date>
    </item>
  </channel>
</rss>

