Announcement Announcement Module
Collapse
No announcement yet.
ClassNotFoundException: org.springframework.roo.bootstrap.Bootstrap on windows Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ClassNotFoundException: org.springframework.roo.bootstrap.Bootstrap on windows

    HI,

    On windows if you install roo in say e:\apps\roo
    if you try to create a project on a different drive say c:\rootest you get
    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.

    Works fin if you use the same drive, I think it's just Roo.bat that needs tweaking

    Thanks,
    Scott

  • #2
    Hi Scott

    I logged this as a bug earlier today, and we'll fix it for 1.0.0.M1:

    http://jira.springframework.org/browse/ROO-59

    Comment


    • #3
      Scott, this bug is now fixed. If you get a chance, would you mind trying the new batch file in your current Roo installation? The replacement file content can be found in the comments of the aforementioned issue.

      Comment


      • #4
        ok. works fine now on win XP.

        Comment


        • #5
          I'm at revision 723, and I get:

          Code:
          Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/roo/bootstrap/Bootstrap
          Caused by: java.lang.ClassNotFoundException: org.springframework.roo.bootstrap.Bootstrap
                  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.  Program will exit.
          when I execute "roo"

          I have ROO bin path on PATH and I don't have ROO_HOME defined. Also, I'm using the same drive. What could it be? Greetings

          PD: I saw inside org.springframework.roo.bootstrap-1.1.0.M1.jar, that there isn't such class, only Main, and AutoProcessor. Greetings again
          PD2: I'm using Windows 7

          Gian Franco Zabarino
          Last edited by gfz87; Mar 23rd, 2010, 08:07 PM.

          Comment


          • #6
            It seems you are building Roo from trunk. We made a switch to OSGi for Roo addons and the Roo infrastructure yesterday. With this the setup for development environments has slightly changed. Please read readme.txt in Roo trunk for details on how to get things working again.

            HTH,
            Stefan

            Comment

            Working...
            X