Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Course Setup Requirements Course: Using XML in Java Applications Course Version: 3.1 Last updated: January 28, 2005 Hardware Basic platform: • Any Windows or Unix computer capable of running Java version 1.4 and JWSDP version 1.4 The following platforms have been tested by Sun: • Solaris 9 Operating System (SPARC and x86) • Windows Server 2003 • Windows XP Professional Edition • Red Hat Linux 9.0 • Red Hat Enterprise Linux AS 3.0 • An Internet connection is highly desirable. Certain XML-related Web sites will be discussed during the course; it would help for the students to see them. Furthermore, the API documentation is available on the web. In addition: Software Here is a summary of software required for this course. Detailed instructions follow in the sections below. • Microsoft Internet Explorer or Mozilla. • Java 2 Standard Edition version 1.4 software and documentation. • Java WebServices Developer Pack 1.5 • JDOM version 1.0 • Student files (for labs). • Text Editor • Instructor setup. © 2005 SkillBuilders, Inc. www.skillbuilders.com V3.1 Using XML in Java Applications Page 2 The Java 2 Standard Edition (JDK) 1.4 This course has been tested with version 1.4 of the Java 2 Standard Edition, also known as J2SE 1.4 or JDK 1.4. It has not been tested with J2SE version 1.5 (although it may work). JDK 1.4 can be installed from the course CD as follows: 1. Execute the install EXE for the JDK from the Required Software\Java JDK1.4 folder the course CD. Follow the prompts to install in a suitable directory. 2. Add the bin subdirectory underneath the JDK home directory to the PATH environment variable. For example, if you installed the JDK to c:\j2sdk1.4, add c:\j2sdk1.4\bin to the PATH. Testing the JDK Installation To test a command line application, go to a command window and run the following command exactly as written (it is case sensitive): java java.lang.String • If you get the message Exception in thread "main" java.lang.NoSuchMethodError: main, everything is fine. • If you get a message indicating that “java” is not recognized (such as Bad command or file name), check the PATH setting to be sure that the bin directory under the JDK installation is in the PATH. • If you get the message Exception in thread "main" java.lang.NoClassDefFoundError: String, there is a problem with the setting of the CLASSPATH environment variable. Try the command again as follows: java -classpath . java.lang.String If this solves the problem, then delete the current CLASSPATH environment variable. If not, contact the course vendor to further diagnose the problem. Java WebServices Developer Pack 1.5 This course has been tested with the JWSDP 1.4 and JWSDP 1.5. You can download the JWSDP from the web at http://java.sun.com. Follow the links to Web Services, download JWSDP version 1.5. You can also copy it from the course CD as follows: 1. Locate the jwsdp-1_5-windows-i586.exe file on the course CD. 2. Execute this file and follow the instructions on the screen. You do not need to associate the installation with a web container for this class. 3. Make sure your base JWSDP installation directory contains (among others) the following subdirectories: jaxb, jaxp, and doc. © 2005 SkillBuilders, Inc. www.skillbuilders.com V3.1 Using XML in Java Applications Page 3 JDOM Copy the file jdom-1.0.zip from the course CD or download it from the following URL: http://www.jdom.org/dist/binary/ Unzip jdom-1.0.zip Student Files The student files consist of finished versions of the various labs, files needed to complete the labs, and various demo applications. They are provided on the course CD in the form of a self-extracting zip file that will create a student directory and subdirectories. Important note: If the student files from a previous session of this course are still on the machine, they will have to be refreshed. Erase the student directory and all subdirectories and reinstall the student files as described below. Installing on Windows To install the files on Windows machines: 1. Locate the student setup EXE on the course CD. 2. The Winzip dialog box will appear. You may enter the the desired drive and directory, but if possible for the sake of classroom consistency, use the default directory (c:\xmljava) that is already entered for you. Then click Unzip. The files will expand to the named directory on the chosen drive. 3. Close the dialog box. 4. Modify the setenv.bat batch file according to instructions from your teacher, and execute it each time a new DOS window is opened for working on the labs. You will need to modify the following four lines in your setenv.bat file which is located in c:\xmlclass: set COURSE_ROOT={directory in which student files installed} set JDOM_HOME={directory in which JDOM is installed} set JAVA_HOME={directory in which Java JDK is installed} set JWSDP_HOME={directory in which JWSDP is installed} Installing on UNIX The student files are formatted for Windows (DOS) platforms. Installing them on a UNIX platform will require a different installation script from Skillbuilders. © 2005 SkillBuilders, Inc. www.skillbuilders.com V3.1 Using XML in Java Applications Page 4 Text Editor This course requires a programmer’s text editor. Windows These workshops can be run using an IDE such as Eclipse. A very good plain text editor is JEdit, which is available from http://www.jedit.org. If no other editor is available, you can install Textpad for Windows from the course CD as follows: Install the Editor Locate the Textpad setup.exe in the Required Software\Textpad Software folder on the course CD and execute it. Apply the License Once the editor is installed, a license must be applied to it. The license is in the file license.txt in the same folder on the CD. To apply it: 1. Open the license text file on the CD. 2. Select the portion from BEGIN LICENSE to END LICENSE (inclusive) and copy to the clipboard. 3. Start Textpad from the Windows Start menu. (Textpad should appear on the Programs menu.) 4. In Textpad, choose the menu command Help | Apply License Code. Paste the license text from the clipboard into the dialog box. Then click OK. UNIX/Linux Students can use vi, which is well known and usually available. However, many students are not comfortable with vi, so an alternative should be available as well. Instructor Setup The instructor will be presenting the course in the form of Adobe Acrobat (PDF) files, as well as demonstrations of the labs and other applications and displays of documentation screens. This requires: • An instructor workstation with the same setup as for the students. • Adobe Acrobat Reader installed on the instructor workstation. It is available in the Software\ Adobe Acrobat Reader folder on the course CD. • A projector connected to the instructor workstation. © 2005 SkillBuilders, Inc. www.skillbuilders.com V3.1