Yurttas/PL/OOL/Java/F/02/08/E/01/index page

From ZCubes Wiki
Jump to navigation Jump to search
Dr. Salih Yurttas - yurttas@zcubes.com
programming languages - design principles, implementation constructs
java

  1. class, package, jar, bean
    1. jar [user defined manifest] - named package - e
javac E00.java

jar cvfm e00.jar e00.mf E00.class e

java -jar e00.jar

or

java -classpath e00.jar E00

or

jar xvf e00.jar

java E00
javac E01.java

jar cvf e01.jar E01.class e

java -jar e01.jar

or

java -classpath e01.jar E01

or

jar xvf e01.jar

java E01
      • E01.java | e01.jar | e01.mf
        [ multiple classes all in their own file in a 'named package' ]
        [ jar with user manifest file ] named package [user-defined] - e this is a proper way of packaging for reusable components with libraries and component-based software development

java as a pure oo language << 2 >> exceptions | 4 | 5 | 6 | 7 | 8 | 9