Yurttas/PL/OOL/Java/F/02/08/G/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 packages - gt, sy
javac G00.java

jar cvfm g00.jar g00.mf G00.class gt sy

java -classpath g00.jar G00

or

jar xvf g00.jar

java G00
javac G01.java

jar cvfm g01.jar g01.mf G01.class gt sy

java -classpath g01.jar G01

or

jar xvf g01.jar

java G01
      • G01.java | g01.jar | g01.mf
        public class importing from package gt and package sy
        [ jar with user manifest file ] named packages [user-defined] - gt, sy
        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