10.2.6 Establishing an Oracle Help environment
To use Oracle Help for Java, you must have both Oracle Help and a Java Virtual Machine (JVM) installed on your system. Oracle Help version 4.2 requires the Java Developer's Kit (JDK) version 1.3.1 or a later version. If you plan to create .jar files, you will also need jar.exe from Sun Microsystems Java Software Development Kit (SDK).
Oracle Help for Java is available for download from the Oracle Technology Network:
http://otn.oracle.com/software/tech/java/help/content.html
You must edit Windows environment variable CLASSPATH (or create CLASSPATH if it is not already defined on your system); for example, on Windows 2000 or Windows XP:
Control Panel > System > Advanced > Environment Variables
Append to CLASSPATH the following paths, separating each path from the next with a semicolon:
where\you\installed\ohj\help4.jar
where\you\installed\ohj\help4-demo.jar
where\you\installed\ohj\help4-indexer.jar
where\you\installed\ohj\ohj-jewt.jar
where\you\installed\ohj\oracle_ice.jar
For example (all on one line, of course):
CLASSPATH=D:\ohelp\help4-indexer.jar;D:\ohelp\help4-demo.jar;D:\ohelp\help4.jar;D:\ohelp\ohj-jewt.jar;D:\ohelp\;D:\ohelp\oracle_ice.jar;D:\ohelp\help4-indexer.jar
Given these settings for CLASSPATH, if you have also established a path to java.exe in a current JRE (see §10.2.5 Establishing a JavaHelp environment), to view the results of generating Oracle Help you can use a .bat file with commands like the following:
java oracle.help.demo.ChoiceDemo "\path\to\MyOutput\help\MyDoc.hs"
> 10 Generating JavaHelp or Oracle Help > 10.2 Setting up a JavaHelp or Oracle Help project > 10.2.6 Establishing an Oracle Help environment
