[
https://issues.jenkins-ci.org/browse/JENKINS-8587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158786#comment-158786
]
Auke van Leeuwen commented on JENKINS-8587:
-------------------------------------------
I had the same issue, after much trial and error I found what was causing this:
an extra space between the system properties I was passing.
{noformat}-Darg1=value1 -Darg2=value2{noformat}
fails
{noformat}-Darg1=value1 -Darg2=value2{noformat}
works
> Exception in thread "main" java.lang.NoClassDefFoundError
> ---------------------------------------------------------
>
> Key: JENKINS-8587
> URL: https://issues.jenkins-ci.org/browse/JENKINS-8587
> Project: Jenkins
> Issue Type: Bug
> Components: sbt
> Affects Versions: current
> Reporter: uzilan
> Assignee: uzilan
> Fix For: current
>
> Attachments: sbt-hudson-console-log.txt
>
>
> (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.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira