3/5/2002e-business and Information Systems1 Install Java JDK/SDK Download JDK 1.3 or higher Install JDK Set search PATH for Operating System Set CLASSPATH for JVM
3/5/2002e-business and Information Systems2 Download JDK/SDK Visit URL: Follow the download link: Select: Windows (all languages) SDK DOWNLOAD Accept the agreement. Select download method “HTTP download” Save to hard_disk or zip_tape
3/5/2002e-business and Information Systems3 Install JDK/SDK Windows 2000/Windows XP/Vista On desktop, right click “My Computer” Select “Explore” Find the file you have downloaded. (Example:j2sdk-1_3_1_03-win.exe) Double click the.exe file to start installation
3/5/2002e-business and Information Systems4 Installation – cont. Use the default installation path or Click “Browse” to select one.
3/5/2002e-business and Information Systems5 DOS commands DOS is not case sensitive CD – change directory MD – make directory DIR – list directory SET – set environment variables %env_var_name% * - wildcard – example: pa* will match path or pa
3/5/2002e-business and Information Systems6 DOS File System C:\ WINDOWS WINNT MY DOCUMENTS JDK1.3.1_02 MY_PROJ bin javajavacjar … Example of path: C:\MY DOCUMENTS\JDK1.3.1_02\bin\java C:\MY DOCUMENTS\JDK1.3.1_02\bin\javac
3/5/2002e-business and Information Systems7 DOS Environment Variables C:\>set TMP=c:\windows\TEMP TEMP=C:\windows\TEMP winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM PROMPT=$P$G PATH=C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND; windir=C:\WINDOWS
3/5/2002e-business and Information Systems8 Set Search PATH Set search PATH for Operating System Command:set path=C:\jdk1.3.1_02\bin;%path% Note: no space before and after = sign
3/5/2002e-business and Information Systems9 Set CLASSPATH Set CLASSPATH for JVM Command:set CLASSPATH=.;%CLASSPATH% Note: no space before and after = sign
3/5/2002e-business and Information Systems10 JDK 1.2 and Up Java Development Kit (JDK) JDK 1.2 (Java2) AWT classes JFC Swing classes JDK 1.2 Figures from “JAVA Swing” – O’REILLY