Hello, 

I am a newbie. I am trying to build Hudson using the code source that I
downloaded fron the website. 
( I need it for a project I am working on in the university) 

So I want to know whether or not the things I've done are correct. 

I located the code source under : C:\hudsonsrc 

Then using CMD (windows) I type the following: 

C:\hudsonsrc\core>cd C:\hudsonsrc\core 
C:\hudsonsrc\core>mvn install -DskipTests 

Then I get many messages, but most importantly: 

[INFO] Building jar: C:\hudsonsrc\core\target\hudson-core-1.349.jar 
[INFO] [install:install {execution: default-install}] 
[INFO] Installing C:\hudsonsrc\core\target\hudson-core-1.349.jar to
C:\Documents and
Settings\Administrateur\.m2\repository\org\jvnet\hudson\main\hudson-core\1.349\hudson-core-1.349.
 
jar 
[INFO]
------------------------------------------------------------------------ 
[INFO] BUILD SUCCESSFUL 
[INFO]
------------------------------------------------------------------------ 
[INFO] Total time: 1 minute 6 seconds 
[INFO] Finished at: Sun Apr 18 21:17:29 GMT+01:00 2010 
[INFO] Final Memory: 32M/77M 
[INFO]
------------------------------------------------------------------------ 
C:\hudsonsrc\core> 


Indeed, I find the .jar under C:\hudsonsrc\core\target 
But when I try to execute it: 

java -jar hudson-core-1.349.jar 

I get the following error: 

C:\hudsonsrc\core\target>java -jar hudson-core-1.349.jar 
Exception in thread "main" java.lang.NoClassDefFoundError:
hudson/remoting/Callable 
        at hudson.Main.getHudsonHome(Main.java:73) 
        at hudson.Main.run(Main.java:63) 
        at hudson.Main.main(Main.java:55) 
Caused by: java.lang.ClassNotFoundException: hudson.remoting.Callable 
        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) 
        ... 3 more 

Can anyone tell me what I did wrong? 

Thank You 

-- 
View this message in context: 
http://old.nabble.com/Building-hudson-tp28285884p28285884.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to