Announcement Announcement Module
Collapse
No announcement yet.
Could not find the main class: org.springframework.roo.bootstrap.Main Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not find the main class: org.springframework.roo.bootstrap.Main

    Hello everyone,

    I have a problem to run roo-dev after I have successfully "mvn install"ed the latest build. It did work with my one week older version, but now the execution of roo-dev fails. I am running under windows. Below you find the short error output and the long one is attached as a file. (without @echo off in the batch file).

    Any help would be appreciated.
    Regards
    Nils

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/framework/la
    unch/FrameworkFactory
    Caused by: java.lang.ClassNotFoundException: org.osgi.framework.launch.Framework
    Factory
            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)
    Could not find the main class: org.springframework.roo.bootstrap.Main.  Program
    will exit.
    Roo exited with code 1

  • #2
    i had same problem!

    1) build success, under log.
    ...(skip)...
    [INFO] Spring Roo - Addon - Google Web Toolkit ............... SUCCESS [1.746s]
    [INFO] Spring Roo - Addon - Database Reverse Engineering ..... SUCCESS [1.818s]
    [INFO] Spring Roo - Annotations (ASLv2/GPLv3 Dual Licensed) .. SUCCESS [2.381s]
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 50 seconds
    [INFO] Finished at: Tue Jun 15 14:53:28 KST 2010
    [INFO] Final Memory: 65M/116M
    [INFO] ------------------------------------------------------------------------
    D:\ROO\git-roo\roo>


    2) run roo, under log.

    d:\JAVA\WORK\test>roo-dev
    Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/framework/launch/FrameworkFactory
    Caused by: java.lang.ClassNotFoundException: org.osgi.framework.launch.FrameworkFactory
    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)
    Roo exited with code 1

    d:\JAVA\WORK\test>

    Comment

    Working...
    X