1 / 11

COP 3530 Discussion Section 1

COP 3530 Discussion Section 1. Xiaoying Zheng. Contact Information. Xiaoying Zheng Office Hour (M 6-7, F 6-7) CSE E309 392-1183 xiazheng@cise.ufl.edu Questions are welcome. Please speak loudly and slowly. Today. Policy Set up Java compiler Set up Dr.Sahni's data structures package

sheba
Télécharger la présentation

COP 3530 Discussion Section 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COP 3530Discussion Section 1 Xiaoying Zheng

  2. Contact Information • Xiaoying Zheng • Office Hour (M 6-7, F 6-7) CSE E309 392-1183 • xiazheng@cise.ufl.edu • Questions are welcome. Please speak loudly and slowly

  3. Today • Policy • Set up Java compiler • Set up Dr.Sahni's data structures package • compile and run the Java codes from the text • How to jar files • Register for courseWorx and submit assignments through courseWorx • Java online documents

  4. Policy • http://www.cise.ufl.edu/class/cop3530sp04 • TAs will help you learn how to debug your own programs. They have been instructed to do this only when you produce documentation of your program's design that maps clearly to your implementation. Without this, you will be asked to return when you have done this. • We will use MOSS to detect excessive collaboration and copying of programs

  5. Set up Java compiler • http://java.sun.com/j2se/1.4.2/download.html. Follow the links to Java 2 SDK Version 1.2.x or higher. And Install it. • add the path of your Java compiler (e.g., c:\jdk1.3\bin) to the PATH environment variable. In Windows 2000 or XP • Open the Windows Control Panel for System • Choose the Advanced tab and click the Environment Variables button, add c:\jdk1.3\bin to the end of the PATH variable, using a semicolon as a separator. Set path=c:\jdk1.3\bin;%path%

  6. Set up Dr.Sahni's data structures package • Download package (eprogs.zip recommended) (http://www.cise.ufl.edu/~sahni/dsaaj/) • Unzip the package, which will create subdirectories such as c:\eprogs\dataStructures, c:\eprogs\applications etc.

  7. Set up Dr.Sahni's data structures package (cont.) • Set up the class path for the package • In Windows 2000 or XP • Open the Windows Control Panel for System • Choose the Advanced tab and click the Environment Variables button, add c:\eprogs to the end of the CLASSPATH variable, using a semicolon as a separator. If you do not have a CLASSPATH defined, create one and set it equal to c:\eprogs • Use Command Line: set CLASSPATH=.;c:\eprogs • autoexec.bat (win98)

  8. compile and run the Java codes • go to the c:\eprogs\dataStructures folder • Compile: javac ArrayLinearList.java • Run: java dataStructures.ArrayLinearList

  9. How to jar files • jar: jar cvfARCHIVE-NAME file1 file2 file3 ...etc eg: jar cvf submit ArrayLinearList.java disscussion.doc Submission.txt • unjar: jar xf ARCHIVE-NAME unjar xf submit • Notice: • run the jar command inside the directory where the files are present • do not submit archives with directories • Submit only source code (.java file)

  10. CourseWorx & Assignment submission • Follow the link on CourseWorx • Register an ID and Password if you don't already have them • Login and Turn in your jarred archive • Notice: Always download the file you turned in and Unjar the archive in a new folder to verify if the submission was okay

  11. Java online documents • http://java.sun.com/j2se/1.4.2/docs/api/

More Related