Macintosh Installation Instructions

The file you get will be a self-extracting archive called something like JDK-1_0_2-MacOS.sea.bin. If you use Fetch or Anarchie to download it will be automatically converted into the self-extracting JDK-1_0_2-MacOS.sea. Double-click it to extract it and the double-click the resulting installer JDK-1_0_2-MacOS. It will prompt you for a location to put it on your hard disk. Put it wherever is convenient.

It may be helpful to make aliases of the Applet Viewer, the Java Compiler and the Java Runner and put them on your desktop for ease of dragging and dropping later, especially if you have a large monitor.

Windows Installation Instructions

The Windows X86 release is a self extracting archive. You will need about six megabytes of free disk space to install the JDK. Execute the file by double-clicking on it in the File Manager or by selecting Run... from the Program Manager's File menu and typing the path to the file. This will unpack the archive. The full path is unimportant, but for simplicity's sake I am going to assume you installed it from the root of your C: drive. If this is the case the files will live in C:\java. If you unpacked it somewhere else just replace C:\ by the full path to the java directory in what follows.

You will need to add C:\java\bin directory to your PATH environment variable

In addition to the java files, the archive includes two common DLL's:

  • MSVCRT20.DLL
  • MFC30.DLL
These two files will be installed in your java directory. If you do not already have copies of these two files on your system, (There's a very good chance you do, probably in your system directory.) copy them into the C:\java\bin directory. If you do have these two files already, just delete these extra copies.

Running Your First Applet

Unix Instructions

Start the Applet Viewer by doing the following:

  1. Open a command line prompt, and cd to one of the directories in /usr/local/java/demo, for example % cd /usr/local/java/demo/TicTacToe
  2. Run the appletviewer on the html file: % appletviewer example1
  3. Play Tic-Tac-Toe! The algorithm was deliberately broken so it is possible to win.

Macintosh Instructions

  1. Start the Applet Viewer by double-clicking it.
  2. Select Open... from the File menu and navigate into the java folder, then the Sample Applets folder, then the TicTacToe folder.
  3. Select the file example1 and click on the Open button. Alternately you can drag and drop this file onto the Applet Viewer.
  4. Play Tic-Tac-Toe! The algorithm was deliberately broken so it is possible to win.

Windows Instructions

Start the Applet Viewer by doing the following:

  1. Open a DOS window, and cd to one of the directories in C:\JAVA\DEMO, for example C:< cd C:\JAVA\DEMO\TicTacToe
  2. Run the appletviewer on the html file: C:< appletviewer example1.htm
  3. Play Tic-Tac-Toe! The algorithm was deliberately broken so it is possible to win.
Hot Tip: Getting Rid of that Annoying License Dialog Box
Do you know the annoying dialog box I'm talking about? I bet you do. It's the one that comes up every time you launch the applet viewer to make you agree to Sun's license. Do you want to get rid of it? If so make a directory called .hotjava in your java/bin directory. You won't see it again.

 

 

Bhopal news
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

freelance web designer india ecommerce web developer | Ecommerce web design, software developer india | Web hosting India Windows hosting | India web hosting Windows hosting India | India software developer | web designer india