Page 1 of 1

Run demo site

Posted: Mon Feb 18, 2013 5:02 am
by alluchandrasekhar
Hi ,

I am trying to run the demo application last 3days onwards. but i am not getting , when i am doing mvn jetty-demo , build success full. but i am unable to start my demo site. and I did not get maven installation in Eclipse. Please help me, send details step by step.


Thanks
Chandra sekhar Allu

Re: Run demo site

Posted: Mon Feb 18, 2013 12:13 pm
by phillipuniverse
The details step by step are included in our getting started guide: http://docs.broadleafcommerce.org/curre ... arted.html

Is there a particular part of the guide that isn't working for you?

Re: Run demo site

Posted: Tue Feb 19, 2013 4:24 am
by alluchandrasekhar
Hi ,

thanks for reply , Now i understood what did wrong. and I am doing mvn-install on Demosite project in eclipse. i am getting build failed in admin module. i am getting this error. and I extract maven zip file in program files / apache software / folder . i set the same path for maven also. In user variables
( name : M2_HOME
value : C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.0.4
) .. any thing wrong in path issue for maven...
please follow below error ...

ecommerce ......................................... SUCCESS [3.218s]
[INFO] core .............................................. SUCCESS [1:03.360s]
[INFO] admin ............................................. FAILURE [3.344s]
[INFO] site .............................................. SKIPPED
[INFO] combined .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:10.265s
[INFO] Finished at: Tue Feb 19 14:37:35 GMT+05:30 2013
[INFO] Final Memory: 8M/21M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project admin: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files (x86)\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... eException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :admin

Thanks
Chandu allu

Re: Run demo site

Posted: Wed Feb 20, 2013 3:41 pm
by phillipuniverse
Looks like you have the JRE installed when you should be using the JDK (which comes with developer tools like javac, which is required for compiling Java classes).