BDD With JBehave and Netbeans - a First Taste

This is a quick overview of how I created a simple hello world example using JBehave and Netbeans, following the BDD development practices.

Create a New Project

Create a new project in Netbeans Ctrl-Shift-N

Select a Java Application template (from the Java category) and call the project HelloBDDWorld

package org.jr0cket.scenarios;
import org.jbehave.scenario.Scenario;

public class IReceiveAGreetingWhenILogin extends Scenario {

public IReceiveAGreetingWhenILogin(){
super(new LoginSteps());


package org.jr0cket.scenarios;

import org.jbehave.scenario.steps.Steps;

class LoginSteps extends Steps {

public LoginSteps() {   }


This exercise is based on the two minute tutorial on the JBehave site, with some added details for Netbeans and a couple of corrections.

Thank you.

This work is licensed under a Creative Commons Attribution 4.0 ShareAlike License, including custom images & stylesheets. Permissions beyond the scope of this license may be available at @jr0cket
Creative Commons License

Scala Development in Netbeans and Ubuntu (And MacOSX)

The Netbeans IDE is a pretty lightweight but easily extensible IDE for different languages that run on the Java Virtual Machine (JVM):

  • Java - native support
  • Groovy - native support
  • Scala - plugin - works with Scala 2.8
  • Clojure - plugin called enclojure

This article covers setting up Scala in Netbeans 6.8 in Linux (works on MacOSX too) - includes installing Scala 2.8, check out the Netbeans guide for Mac and Windows installs and other tips.

Read More