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