Aside from information for your own use, there
Aside from information for your own use, there are special values (in SDK 1.2) you can put in the manifest file that are useful. One of these, Main-Class , allows you to specify a class that contains a main( ) method: Main-Class: Game If you incorporate this specification in your JAR file manifest (using the m option described earlier), you can actually run the JAR from the command line: % java -jar spaceblaster.jar The interpreter looks for the Main-Class value in the manifest. Then it loads the named class as the application’s initial class. What can we do with the revision and temperament information we’ve so cleverly included in the JAR file? Unfortunately, nothing, except for unpacking the archive and reading the manifest. However, if you were writing your own JAR utility or some kind of resource loader, you could include code to look at the manifest, check for your private keywords, and act accordingly perhaps darkening the display if the artist’s temperament is moody. Another important keyword is Java-Bean . The value of this keyword should be true if the item is a Java Bean; this information is used by the BeanBox and other utilities that work with Beans (see Chapter 19). Chapter 4. The Java Language In this chapter, we’ll introduce the framework of the Java language and some of its fundamental facilities. We’re not going to try to provide a full language reference here. Instead, we’ll lay out the basic structures of Java with special attention to how it differs from other languages. For example, we’ll take a close look at arrays in Java, because they are significantly different from those in some other languages. We won’t, on the other hand, spend much time explaining basic language constructs like loops and control structures. Nor will we talk much about Java’s object-oriented side here, as that’s covered in detail in Chapter 5 through Chapter 7. As always, we’ll try to provide meaningful examples to illustrate how to use Java in everyday programming tasks. 4.1 Text Encoding Java is a language for the Internet. Since the people of the Net speak and write in many different human languages, Java must be able to handle a large number of languages as well. One of the ways in which Java supports international access is through Unicode character encoding. Unicode uses a 16-bit character encoding; it’s a worldwide standard that supports the scripts (character sets) of most languages.[1] [1] For more information about Unicode, see http://www.unicode.org. Ironically, one of the scripts listed as “obsolete and archaic” and not currently supported by the Unicode standard is Javanese a historical language of the people of the Island of Java. Java source code can be written using the Unicode character encoding and stored either in its full 16-bit form or with ASCII-encoded Unicode character values. This makes Java a friendly language for non-English-speaking programmers who can use their native alphabet for class, method, and variable names in Java code. - 65
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services