Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8587

Exception in thread "main" java.lang.NoClassDefFoundError

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • sbt-plugin
    • None

      (Copied from https://github.com/hudson/sbt-plugin/issues#issue/1)

      I'm having problems running sbt from Hudson 1.395. Console output says:

      [workspace] $ /usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -Dsbt.log.noformat=true -jar /home/matt/Downloads/local-root/bin/sbt-launch-0.7.4.jar clean update compile test Exception in thread "main" java.lang.NoClassDefFoundError:
      Caused by: java.lang.ClassNotFoundException:

      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      Could not find the main class: . Program will exit.
      Finished: FAILURE

      Running the same sbt command at the shell works fine, however. (Let me know if I can provide other relevant info.)

          [JENKINS-8587] Exception in thread "main" java.lang.NoClassDefFoundError

          uzilan created issue -

          MattRussellUK added a comment -

          Attached full console log

          MattRussellUK added a comment - Attached full console log
          MattRussellUK made changes -
          Attachment New: sbt-hudson-console-log.txt [ 20169 ]

          uzilan added a comment -

          I'm sorry but I don't think that Scalariform is an sbt project. Did you get it to build with sbt?

          uzilan added a comment - I'm sorry but I don't think that Scalariform is an sbt project. Did you get it to build with sbt?

          MattRussellUK added a comment -

          > I'm sorry but I don't think that Scalariform is an sbt project.

          Scalariform is definitely an sbt project (I'm the author).

          > Did you get it to build with sbt?

          On my machine, running the sbt command which Hudson logged from the command line builds the project correctly.

          MattRussellUK added a comment - > I'm sorry but I don't think that Scalariform is an sbt project. Scalariform is definitely an sbt project (I'm the author). > Did you get it to build with sbt? On my machine, running the sbt command which Hudson logged from the command line builds the project correctly.
          uzilan made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          uzilan added a comment -

          Got it

          The problem occurred when no jvm arguments were given. Resolved in version 1.2.

          Thanks for reporting this issue and sorry for doubting your project's sbt compatibility.

          uzilan added a comment - Got it The problem occurred when no jvm arguments were given. Resolved in version 1.2. Thanks for reporting this issue and sorry for doubting your project's sbt compatibility.

          uzilan added a comment -

          resolved in 1.2

          uzilan added a comment - resolved in 1.2
          uzilan made changes -
          Fix Version/s New: current [ 10162 ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Matt Russell added a comment -

          Thanks for the fix – that works great now. Nice work on the plug-in!

          Matt Russell added a comment - Thanks for the fix – that works great now. Nice work on the plug-in!

            uzilan uzilan
            uzilan uzilan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: