How do I develop JBuilder 2008 applications that manage grammars?
Last reviewed: 11/29/2008
HOW Article ID: H110806
The information in this article applies to:
- GrammarKit 3
Summary
GrammarKit 3 includes updated samples for JBuilder 2008 from CodeGear.
More Information
Configure JBuilder-Eclipse (JBuilder 2007 and 2008) to use the Chant GrammarKit Java Component Library with the following steps:
- copy the DJGrammarKit.DLL (C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\bin\DJGrammarKit.DLL) file to your Java JRE bin directory; and
-
configure the grammarkit.jar and chant-shared.jar libraries (C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\libv1.x) within your JBuilder project as follows:
- create a lib directory containing grammarkit.jar and chant-shared.jar within your project root directory;
- right-click on the grammarkit.jar file and select Build Path | Add To Build Path; and
- right-click on the chant-shared.jar file and select Build Path | Add To Build Path.
Configure JBuilder-Eclipse (JBuilder 2007 and 2008) to run the Compile and Phonemes samples with the following steps:
- copy the DJGrammarKit.DLL file to your Java JRE bin directory;
- copy the JBuilder-Eclipse Compile and Phonemes project folders (i.e., C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\Samples\JBuilder-Eclipse\Compile and C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\Samples\JBuilder-Eclipse\Phonemes) to your JBuilder workspace directory;
- within JBuilder, select File | Import; and
- select General | Existing Projects into Workspace.
The JBuilder-Swing samples can be opened end edited under the Swing Designer (JBuilder 2008). Configure JBuilder-Eclipse (JBuilder 2008) to run the Compile and Phonemes samples with the following steps:
- copy the DJGrammarKit.DLL file to your Java JRE bin directory;
- copy the JBuilder-Swing Compile and Phonemes project folders (i.e., C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\Samples\JBuilder-Swing\Compile and C:\Program Files\Chant\GrammarKit 3\Win32 Developer\Java\Samples\JBuilder-Swing\Phonemes) to your JBuilder workspace directory;
- within JBuilder, select File | Import; and
- select General | Existing Projects into Workspace.
Place import com.grammarkit.*; and import net.chant.shared.*; statements in your application to reference the GrammarKit classes and members within your code.
JBuilder-Eclipse sample projects are installed at [My] Documents\Chant GrammarKit 3\Java\JBuilder-Eclipse and [My] Documents\Chant GrammarKit 3\Java\JBuilder-Swing.