Maven Running or Debugging as WO Application

Version 4.1 by Lachlan Deck on 2009/02/20 10:49

When running a WO Application in WOLips the following steps currently need to be followed in order for WOLips to resolve components and resources on the classpath.

  1. Follow this tutorial http://wiki.objectstyle.org/confluence/display/WOL/Run+or+Debug+a+WO+Application. Note, the application may fail to start.
  2. Stop the application and open the run/debug configuration OpenConfigurations.png
  3. Switch to the classpath tab ClasspathTab.png
  4. Click on Advanced... selecting Folders AdvancedOptions.png
  5. Add your application and dependant framework's build/.../'Java' folders FolderSelection.png
  6. Your results will look something like this ClasspathTabResult.png
Success

Classpath Containers are more convenience

You may find yourself doing the above often and it can become painful. Classpath containers become much more convenient...

# Follow up to point 3 above
# Click on Advanced... selecting Add Classpath Variables !Advanced_AddClasspathVariables.png!
# Click the Configure Variables... button, and for each folder you would have added above define a variable. I've called mine BUNDLE_SOMETHING !ClasspathVariablesDefined.png!
# Now you can select the ones you need for the app and click ok !ClasspathVariableSelection.png!
# You'll have something looking like this !ClasspathTabResult_usingClasspathVariables.png!

Now you can apply changes and run/debug. You may from time to time need to use Project > Clean... when WOLips gets into a weird state.