What does the Simple example do?

This sample plug-in demonstrates how to write a LiveConnect-enabled plug-in. It displays a rectangle with the text "Hello World" and writes messages to the Java Console and to stdout to tell you what it's doing.

Building and using Simple

Win32/MSVC++ 4.0:

  1. In the Examples\Simple\Windows directory, open the Simple.mdp project workspace file.
  2. Select the "Build|Build NPSimp32.dll" menu item.
  3. Copy the java class file Examples\Simple\Simple.class to the navigator plugins directory.
  4. Copy the plugin Examples\Simple\Windows\NPSimp32.dll to the navigator plugins directory.
  5. Quit and relaunch the Navigator, if it is running.
  6. With the Navigator (preferably 3.0b5 or above) open the file Examples\Simple\Testing\SimpleExample.html.

PPC Mac/CodeWarrior 9:

  1. In the "Examples:Simple:Macintosh" folder, open the SimplePPC.µ project file.
  2. Select the "Project|Make" menu item.
  3. Copy the java class file "Examples:Simple:Simple.class" to "System Folder:Preferences:Netscape Ÿ:Java:netscape-classes". (In the next beta release it should be possible to simply place the class file in the plugins directory.)
  4. Copy the plugin (or an alias) "Examples:Simple:SimplePPC" to the navigator Plug-ins folder.
  5. Quit and relaunch the Navigator, if it is running.
  6. With the Navigator (preferably 3.0b5 or above) open the file "Examples:Simple:Testing:SimpleExample.html".
(The Simple example does not work with 68k macs.)