Minimal Software / 14 posts / 6 comments / feed / comments feed

Spring Roo – Bootstrap problems on Windows

SpringSource

SpringSource

I’ve just started playing around with Spring Roo it seems like a really good ’scaffold’ approach to starting Java development, much like the productivity boost you get from Ruby on Rails or Grails.  There is a good tutorial here.  I did hit one issue while following it – on Windows.

If you have installed Roo on a different drive than the projects you create, for example I installed Roo to E:\apps\roo and then tried to create a Roo project in C:\rootest and got this:

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/r
oo/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.springframework.roo.bootstrap.B
ootstrap
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.springframework.roo.bootstrap.Bootstrap.  Pro
gram will exit.

The easiest work around is just to make sure you create them on the same drive, and then it works fine.

I’ll update more as I get chance to play

BTW – M1 also includes Selenium support

Quick update:  this will now be fixed in the next release JIRA task here

3 Comments

  1. Ben Alex — May 29, 2009 #

    My apologies that you ran into this problem. FYI I’ve logged it at http://jira.springframework.org/browse/ROO-59 and we’ll address in the 1.0.0.M2 release.

  2. admin — May 30, 2009 #

    Thanks Ben – very impressed so far!

  3. BEN ALEX — May 31, 2009 #

    Just a quick note to let you know we’re fixed the above drive letter bug. Check out the ROO-59 issue comments if you’d like a replacement batch file that should work with a different drive letter. This will be included in the next Roo release, 1.0.0.M2.

Leave a comment