Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC 243 - Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!

Similar presentations


Presentation on theme: "CSC 243 - Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!"— Presentation transcript:

1 CSC 243 - Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!

2 References GNU make http://www.gnu.org/software/make/manual/http://www.gnu.org/software/make/manual/ http://java.sun.com/javase/downloads/index.jsp docs. http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/6/docs/ has on-line docs. http://java.sun.com/javase/6/docs/ http://java.sun.com/javase/6/docs/api/index.html class lib. http://java.sun.com/javase/6/docs/api/index.html /export/home/faculty/parson/JavaLang on bill.kutztown.edu Make sure that /usr/jdk/jdk1.6.0_02/bin is near the front of UNIX PATH. Follow instructions in the JavaShellSetup.pdf document (accessible via my home page at http://faculty.kutztown.edu/parson) to set up and verify your Java compilation environment.JavaShellSetup.pdfhttp://faculty.kutztown.edu/parson

3 Java programs run on a Java Virtual Machine (JVM) Java source program, FILE.java javac –g FILE.java (creates FILE.class) java PACKAGE.FILE where PACKAGE is a subdirectory under ~/JavaLang This runs PACKAGE.FILE on an interpreted JVM.

4 Categories of Java Virtual Machines Java EE (Enterprise Edition) comes with enterprise level class libraries, for example, large database and server infrastructure Java SE (Standard Edition) is the typical configuration for non-corporate users, including single users Java ME (Micro Edition) is for embedded devices. It has a small and special-purpose class library.

5 Varieties of Java “programs” Stand-alone applications run like C++ programs. Applets run inside a web browser (GUI). Servlets run inside a web server (HTML). Java Frameworks can select and load Java plugins (components) at run time. Java can run on small footprint embedded devices (for example, cell phones).

6 First example Java program CountArgString counts distinct, non- overlapping occurrences of a string in a file /export/home/faculty/parson/JavaLang/week1/lecture1 Make sure you “cp –pr ~parson/JavaLang ~/JavaLang to get JavaLang into your home directory Make sure CLASSPATH include your $HOME/JavaLang makefile drives execution of compile and test steps gmake build to compile Java files gmake test to run test cases gmake clean to clean up test output and compiled files


Download ppt "CSC 243 - Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!"

Similar presentations


Ads by Google