Содержание
- 2. Формат JAR
- 3. Простое приложение “Привет калькулятор!” package org.cud.hello; public class HelloCalc { public static void main(String[] args) {
- 4. Компиляция G:\>dir src\org\cud\hello Volume in drive G has no label. Volume Serial Number is 3400-744D Directory
- 5. Создание JAR файла G:\bin>dir Volume in drive G has no label. Volume Serial Number is 3400-744D
- 6. Создание JAR файла из другой директории G:\>dir Volume in drive G has no label. Volume Serial
- 7. Использование JAR архива G:\>dir Volume in drive G has no label. Volume Serial Number is 3400-744D
- 8. Библиотека
- 9. Библиотека “Калькулятор!” package org.cud.calc; public class Calculator { public int sum(int... numbers) { int total =
- 10. Компиляция и создание JAR архива G:\>javac -d bin src\org\cud\calc\Calculator.java G:\>dir bin\org\cud\calc Volume in drive G has
- 11. Простое приложение “Привет калькулятор!” package org.cud.hello; import org.cud.calc.Calculator; public class HelloCalc { public static void main(String[]
- 12. Компиляция и запуск G:\>javac -d bin -cp bin\calculator.jar src\org\cud\hello\HelloCalc.java G:\>dir bin\org\cud\hello Volume in drive G has
- 13. Создание JAR архива приложения и запуск G:\>jar -cfv bin/hello.jar -C bin org\cud\hello\HelloCalc.class added manifest adding: org/cud/hello/HelloCalc.class(in
- 14. Манифест
- 15. Манифест
- 16. Исполняемые JAR архивы
- 17. Простое приложение “Привет калькулятор!” package org.cud.hello; public class HelloCalc { public static void main(String[] args) {
- 18. Компиляция G:\>dir src\org\cud\hello Volume in drive G has no label. Volume Serial Number is 3400-744D Directory
- 19. Создадим манифест Main-Class: org.cud.hello.HelloCalc
- 20. Создание JAR архива приложения и запуск G:\>dir Volume in drive G has no label. Volume Serial
- 21. Более простой способ задания точки входа G:\>javac -d bin src\org\cud\hello\HelloCalc.java G:\>jar cfev bin/hello.jar org.cud.hello.HelloCalc -C bin
- 22. Автоматически добавленное поле Main-Class Manifest-Version: 1.0 Created-By: 1.6.0_35 (Sun Microsystems Inc.) Main-Class: org.cud.hello.HelloCalc
- 23. Работа с classpath
- 24. Манифест
- 25. Библиотека “Калькулятор!” package org.cud.calc; public class Calculator { public int sum(int... numbers) { int total =
- 26. Компиляция и создание JAR архива G:\>javac -d bin src\org\cud\calc\Calculator.java G:\>dir bin\org\cud\calc Volume in drive G has
- 27. Простое приложение “Привет калькулятор!” package org.cud.hello; import org.cud.calc.Calculator; public class HelloCalc { public static void main(String[]
- 28. Компиляция и запуск G:\>javac -d bin -cp bin\calculator.jar src\org\cud\hello\HelloCalc.java G:\>dir bin\org\cud\hello Volume in drive G has
- 29. Создадим манифест Main-Class: org.cud.hello.HelloCalc Class-Path: calculator.jar
- 31. Скачать презентацию