KELP Compiling and Installation - JBuilder

To compile and install KELP in JBuilder 5, JBuilder 6 or  JBuilder 7 there have to be done:

  1. Compile and create Toolbox archive file toolbox.jar,

  2. Compile AddinCore files and

  3. Compile and create KelpAddin archive file KelpAddinJBuilder6.jar or KelpAddinJBuilder7.jar.

  4. Implemeting KELP in JBuilder


 

Building Kelp classes using JBuilder

Compiling and creating Toolbox archive file

In <Kelp source root>\modules\Toolbox directory is Toolbox.jpr project file. Required libraries for compiling Toolbox project is xmlc.jar and xerces.jar. Compile files in this project and build java classes (in \modules\Toolbox\classees directory). To create Toolbox archive file you have to run bulid_Toolbox.bat(in \modules\Toolbox\classees directory).

Compile AddinCore files

In <Kelp source root>\modules\AddinCore directory is AddinCore.jpx project file. Required libraries for compiling AddinCore project are: xmlc.jar, xerces.jar, and toolbox.jar.

Compiling and creating KelpAddin archive file

In <Kelp source root>\modules\AddinJBuilder directory is AddinJBuilder.jpx project file. Required libraries for compiling AddinJBuilder project are: xmlc.jar and toolbox.jar, path to AddinCore output files and JBuilder archive files JBuilder.jar and help.jar (its location is in <JBuilder root>\lib directory). To create KelpAddin archive file you have to rebuild KelpAddinJBuilder.jar file in AddinJBuilder project.


Building Kelp classes using jakarta-ant

In <Kelp source root> directory is build.xml file. This file is used by ant for compiling and creating archive files. All that you have to do is to start this building process is to call build_Kelp_with_ant.bat file in <Kelp source root> directory.

Before that, you have to set JDK_HOME variable (directory of your JDK installation) in build_kelp_with_ant.bat:

set JDK_HOME=c:\jdk1.3.1

and enhydra.root (root directory of Enhydra installation) and jbuilder.root(root directory of jBuilder installation) in kelp.properties file:

enhydra.root=/aonyx5.0
jbuilder.root=/jbuilder6

Ant build process creates two archive (jar) files in <Kelp source root>/lib; directory: toolbox.jar and KelpAddin
Builder.jar.
All required jar files for build using jakarta-ant is situated in <Kelp source root> directory.

Building Toolbox archive file

If you want to generate only toolbox classes and archive files (not AddinKelp.jar), just start build_toolbox_with_ant.bat file in <Kelp source root>\modules\Toolbox directory. Before that, you have to set JDK_HOME variable (directory of your JDK installation) in build_toolbox_with_ant.bat:

set JDK_HOME=c:\jdk1.3.1

and enhydra.root (root directory of Enhydra installation) in kelp.properties file:

enhydra.root=/aonyx5.0

Ant build process creates archive (jar) file in <Kelp source root>/lib; directory: toolbox.jar.
All required jar files for build using jakarta-ant is situated in <Kelp source root> directory.

Implemeting KELP in JBuilder

Preparing jar archives

For installing KELP in JBuilder it is necessery to have these jars: toolbox.jar, KelpAddin.jar, enhydra.jar, xmlc.jar. xerces.jar, tomcat.jar and core.jar.
Copy these jar files into your hard drive:
The location of toolbox.jar file is <aonyx5.0 root>\lib\build directory and it could be for examle: C:\aonyx5.0\lib\build
The location of KelpAddin
JBuilder.jar is not strictly determined too and it could be for example: C:\jbuilder5\kelp5\lib
The location of enhydra.jar file have to be in Enhydra directory and it is for example: C:\aonyx5.0\lib
The location of xmlc.jar file have to be in Enhydra directory and it is for example: C:\aonyx5.0\lib
The location of xerces.jar file have to be in Enhydra directory and it is for example: C:\aonyx5.0\lib
The location of tomcat.jar file have to be in Enhydra directory and it is for example: C:\aonyx5.0\lib
The location of core.jar file have to be in Enhydra directory and it is for example: C:\aonyx5.0\lib


Changing JBuilder configuration file

For installing KELP in JBuilder, JBuilder configuration file have to be changed. That configuration file is: JBuilder.config file and it's location is in <JBuilder root> \bin directory

There have to be added these lines:
C:\jbuilder5\kelp5\lib\KelpAddin
JBuilder.jar
C:\\aonyx5.0\lib\build\toolbox.jar

These lines have to be added before...
# Add all JAR files located in the patch, lib and lib/ext directory addjars
../patch addjars
../lib addjars
../lib/ext
...lines.

Copy Enhydra.libtary file into JBuilder/lib directory. Modify path of enhydra.jar file if necessary.

After this it is necessary to restart JBuilder.