This is a short guide to configuring your Eclipse IDE to develop
NetKernel modules. This guide assumes you are
familiar with the Eclipse IDE. This guide relates
to Eclipse version 3.1.
Create a new Java project.
Make a note of the directory location of the newly created project.
Do this by right-clicking on the project in the Eclipse Package Explorer, select Properties, and in the properties
dialog, note the path in the "location" field.
You may use the New Module Wizard to
create a stubbed out NetKernel module.
If you did not use the wizard, you must register the location of your project in
[install]/etc/deployedModules.xml.
NetKernel reads this file to locate all modules in the file system.
Add [install]/lib/1060netkernel-bootloader-*.*.*.jar to your project build path.
Do this by selecting "Java Build Path" from the list of options on the left hand
side of the Project Properties dialog box, selecting the "Libraries" tab,
and pressing the "Add External JARs ..." button.
Add [install]/lib/1060netkernel-*.*.*.jar to your project build path.
Add [install]/modules/ext-layer1-*.*.*.jar to your project build path.
If your module requires other JAR libraries,
place these in a directory named lib/ in your project and then add them to
your build path.
Do this by following the previous steps, however select the "Add Jars ..." button
instead o fthe "Add External Jars ..." button.
You can run NetKernel using the scripts provided in [install]/bin
however to run NetKernel from Eclipse locate the class com.ten60.netkernel.bootloader.BootLoader within
the 1060netkernel-bootloader jar, right click and select Run As->Run... On the arguments tab
you need to enter some JVM arguments. Firstly enter
-Dbootloader.basepath=[install]
-Djava.endorsed.dirs=[install]/lib/endorsed
-Dbootloader.jarDir=[install]/lib/ext/
These arguments will be remembered between invocations. Now click Run to start NetKernel.