EclipseEclipse
Setting up your development environment
Home > Books > Tutorials and Training Guides > Fundamentals Practicalites > Eclipse

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


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.

  1. Create a new Java project.
  2. 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.
  3. You may use the New Module Wizard to create a stubbed out NetKernel module.
  4. 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.
  5. 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.
  6. Add [install]/lib/1060netkernel-*.*.*.jar to your project build path.
  7. Add [install]/modules/ext-layer1-*.*.*.jar to your project build path.
  8. 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.
  9. 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/
  10. These arguments will be remembered between invocations. Now click Run to start NetKernel.
© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.