Table of Contents
To compile and install KELP in NetBeans 3.3.1, 3.3.2, 3.4 and 3.4.1 there have to be done:
Compile and create Toolbox archive file toolbox.jar,
Compile AddinCore files and
Compile and create KelpAddinForte archive file KelpAddinForte.jar.
Implemeting KELP in NetBeans
Table of Contents
In <Kelp source root>\modules\Toolbox directory is Toolbox.jpr project file. Required libraries for compiling Toolbox project are xmlc.jar, xercesImpl.jar and xml-apis.jar. Compile files in this project and build java classes (in \modules\Toolbox\classees directory).
In <Kelp source root>\modules\AddinCore directory is AddinCore.jpx project file. Required libraries for compiling AddinCore project are: xmlc.jar, xercesImpl.jar, xml-apis.jar and toolbox.jar.
In <Kelp source root>\modules\AddinForte directory is AddinForte.jpx project file. Required libraries for compiling AddinForte project are: xmlc.jar, toolbox.jar, path to AddinCore output files and NetBeans archive files text.jar, image.jar, java.jar and openide.jar (its location is in <NetBeans root>\modules and <NetBeans root>\lib directory). To create KelpAddinForte archive file you have to rebuild KelpAddinForte.jar file in AddinForte project.
Building of needded Kelp jar files is ant based process. To compile and build jars just start executive files in Kelp source root
configure
make
or
./configure
make
(depending on OS - Windows or Linux).
Executive file configure (.bat on Windows) configures kelp.properties file (and makes Makefile on Linux). For more detail just type
configure -help
You will then get more detailed informations about configure options.
For more infomations on (ant based) building options just type
make help
You will then get more detailed informations about make options.
Table of Contents
Follow the steps below if the add-in does not appear to be functioning properly after using the installer, or if you want to install add-in manually. Note that when manually configuring NetBeans, you will be modifying your existing configuration files instead of using the Kelp provided installer.
Add the toolbox.jar and enhydra.jar to your IDE class path. NetBeans includes a configuration file that you can use to add jars to the IDE class path. With NetBeans closed, edit the ide.cfg to add toolbox.jar and enhydra.jar into the IDE class path. Be careful not to add the KelpAddinForte.jar file to the IDE class path.
Modify ide.cfg and ide.policy as shown:
ide.cfg: Add statement
-cp:p C:\Enhydra5.1\lib\build\toolbox.jar;C:\Enhydra5.1\lib\enhydra.jar;C:\Enhydra5.1\lib\xmlc.jar;
C:\Enhydra5.1\lib\xercesImpl.jar;C:\Enhydra5.1\lib\xml-apis.jar;
C:\Enhydra5.1\lib\gnu-regexp.jar;C:\Enhydra5.1\lib\xhtml.jar;C:\Enhydra5.1\lib\dom\xmlc-wml.jar;
C:\Enhydra5.1\lib\dom\xmlc-voicexml.jar;C:\Enhydra5.1\lib\dom\xmlc-chtml.jar;
C:\Enhydra5.1\lib\tomcat.jar;C:\Enhydra5.1\lib\core.jar;C:\Enhydra5.1\build\log4j.jar;
C:\Enhydra5.1\dods\lib\ejen.jar;C:\Enhydra5.1\dods\lib\dods.jar;C:\Enhydra5.1\dods\lib\dods-runtime.jar;
at the end of the line with NetBeans startup options (usualy first and only line).
ide.policy: Add statement
grant {
permission java.security.AllPermission;
};
at the begining of the file.
Copy the KelpAddinForte.jar file to the /modules directory.
NetBeans automatically load jars from the modules directory using a separate class loader than is used for the IDE class path. Modules will not function properly if added to the IDE class path directly through the IDE configuration file.