I am facing this issue during installation of the Apache Ofbiz C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault :clean UP-TO-DATE :cleanAnt :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanGradle :cleanIndexes :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. :processResources :classes :jar :assemble :compileTestJava :processTestResources UP-TO-DATE :testClasses :test :check :build :ofbiz --load-data Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException at org.apache.ofbiz.base.start.Start.main(Start.java:60) Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more :ofbiz --load-data FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':ofbiz --load-data'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 4 mins 13.648 secs i tried so many solutions but nothing happens! please help! |
Administrator
|
Hi,
Your message has been moderated. Please subscribe to the user ML for such questions and then use your email client See also why here http://ofbiz.apache.org/mailing-lists.html You will get a better support , it's more fair to share with everybody and people can answer you directly on the ML rather than directly to you The wider the audience the better the answers you might get Also it's more work for moderators who have to accept your messages as long as you have not subscribed. I'll personally no longer accept them (other moderators still could) Thanks Jacques Le 15/02/2019 à 10:27, [hidden email] a écrit : > I am facing this issue during installation of the Apache Ofbiz > > > C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > :clean UP-TO-DATE > :cleanAnt > :cleanCatalina > :cleanData > :cleanDownloads > :cleanEclipseClasspath UP-TO-DATE > :cleanEclipseJdt UP-TO-DATE > :cleanEclipseProject UP-TO-DATE > :cleanEclipse UP-TO-DATE > :cleanFooterFiles > :cleanGradle > :cleanIndexes > :cleanLogs > :cleanOutput > :cleanTempfiles > :cleanUploads > :cleanXtra > :cleanAll > :compileJava > Note: Some input files use unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > :processResources > :classes > :jar > :assemble > :compileTestJava > :processTestResources UP-TO-DATE > :testClasses > :test > :check > :build > :ofbiz --load-data > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException > at org.apache.ofbiz.base.start.Start.main(Start.java:60) > Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException > at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 1 more > :ofbiz --load-data FAILED > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':ofbiz --load-data'. >> Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' finished with non-zero exit value 1 > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. > > BUILD FAILED > > Total time: 4 mins 13.648 secs > > i tried so many solutions but nothing happens! > please help! > |
In reply to this post by chhokershaab.com@gmail.com
Hii,
Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ Follow the instructions in the above link: JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 OFBIZ_HOME = C:\apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C:\Program Files\Java\jdk1.8.0_151. On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < [hidden email]> wrote: > > I am facing this issue during installation of the Apache Ofbiz > > > C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > :clean UP-TO-DATE > :cleanAnt > :cleanCatalina > :cleanData > :cleanDownloads > :cleanEclipseClasspath UP-TO-DATE > :cleanEclipseJdt UP-TO-DATE > :cleanEclipseProject UP-TO-DATE > :cleanEclipse UP-TO-DATE > :cleanFooterFiles > :cleanGradle > :cleanIndexes > :cleanLogs > :cleanOutput > :cleanTempfiles > :cleanUploads > :cleanXtra > :cleanAll > :compileJava > Note: Some input files use unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > :processResources > :classes > :jar > :assemble > :compileTestJava > :processTestResources UP-TO-DATE > :testClasses > :test > :check > :build > :ofbiz --load-data > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/cli/ParseException > at org.apache.ofbiz.base.start.Start.main(Start.java:60) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.cli.ParseException > at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 1 more > :ofbiz --load-data FAILED > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':ofbiz --load-data'. > > Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' > finished with non-zero exit value 1 > > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > BUILD FAILED > > Total time: 4 mins 13.648 secs > > i tried so many solutions but nothing happens! > please help! > -- Best Regards, Ashish Kumar Pandey HotWax Systems m: +91 9172388455 e: [hidden email] |
On 2019/02/15 13:04:56, Ashish Pandey <[hidden email]> wrote: > Hii, > > Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? > > https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > > Follow the instructions in the above link: > > JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > > OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > > Make sure the bin folder is in the root of C:\Program > Files\Java\jdk1.8.0_151. > > On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > [hidden email]> wrote: > > > > > I am facing this issue during installation of the Apache Ofbiz > > > > > > C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > > :clean UP-TO-DATE > > :cleanAnt > > :cleanCatalina > > :cleanData > > :cleanDownloads > > :cleanEclipseClasspath UP-TO-DATE > > :cleanEclipseJdt UP-TO-DATE > > :cleanEclipseProject UP-TO-DATE > > :cleanEclipse UP-TO-DATE > > :cleanFooterFiles > > :cleanGradle > > :cleanIndexes > > :cleanLogs > > :cleanOutput > > :cleanTempfiles > > :cleanUploads > > :cleanXtra > > :cleanAll > > :compileJava > > Note: Some input files use unchecked or unsafe operations. > > Note: Recompile with -Xlint:unchecked for details. > > :processResources > > :classes > > :jar > > :assemble > > :compileTestJava > > :processTestResources UP-TO-DATE > > :testClasses > > :test > > :check > > :build > > :ofbiz --load-data > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/commons/cli/ParseException > > at org.apache.ofbiz.base.start.Start.main(Start.java:60) > > Caused by: java.lang.ClassNotFoundException: > > org.apache.commons.cli.ParseException > > at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > ... 1 more > > :ofbiz --load-data FAILED > > > > FAILURE: Build failed with an exception. > > > > * What went wrong: > > Execution failed for task ':ofbiz --load-data'. > > > Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' > > finished with non-zero exit value 1 > > > > * Try: > > Run with --stacktrace option to get the stack trace. Run with --info or > > --debug option to get more log output. > > > > BUILD FAILED > > > > Total time: 4 mins 13.648 secs > > > > i tried so many solutions but nothing happens! > > please help! > > > > > -- > Best Regards, > Ashish Kumar Pandey > HotWax Systems > m: +91 9172388455 > e: [hidden email] yeah, I have already set up the environment variable also... still facing the same issue! |
It seems that the dependencies are not automatically downloaded during
the Gradle build. Do you have internet access from the machine running OFBiz? You may have to setup proxy settings if you are behind a proxy. Regards, Michael Am 18.02.19 um 07:24 schrieb [hidden email]: > > On 2019/02/15 13:04:56, Ashish Pandey <[hidden email]> wrote: >> Hii, >> >> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? >> >> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ >> >> Follow the instructions in the above link: >> >> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 >> >> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 >> >> Make sure the bin folder is in the root of C:\Program >> Files\Java\jdk1.8.0_151. >> >> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < >> [hidden email]> wrote: >> >>> I am facing this issue during installation of the Apache Ofbiz >>> >>> >>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault >>> :clean UP-TO-DATE >>> :cleanAnt >>> :cleanCatalina >>> :cleanData >>> :cleanDownloads >>> :cleanEclipseClasspath UP-TO-DATE >>> :cleanEclipseJdt UP-TO-DATE >>> :cleanEclipseProject UP-TO-DATE >>> :cleanEclipse UP-TO-DATE >>> :cleanFooterFiles >>> :cleanGradle >>> :cleanIndexes >>> :cleanLogs >>> :cleanOutput >>> :cleanTempfiles >>> :cleanUploads >>> :cleanXtra >>> :cleanAll >>> :compileJava >>> Note: Some input files use unchecked or unsafe operations. >>> Note: Recompile with -Xlint:unchecked for details. >>> :processResources >>> :classes >>> :jar >>> :assemble >>> :compileTestJava >>> :processTestResources UP-TO-DATE >>> :testClasses >>> :test >>> :check >>> :build >>> :ofbiz --load-data >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> org/apache/commons/cli/ParseException >>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.commons.cli.ParseException >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>> ... 1 more >>> :ofbiz --load-data FAILED >>> >>> FAILURE: Build failed with an exception. >>> >>> * What went wrong: >>> Execution failed for task ':ofbiz --load-data'. >>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' >>> finished with non-zero exit value 1 >>> >>> * Try: >>> Run with --stacktrace option to get the stack trace. Run with --info or >>> --debug option to get more log output. >>> >>> BUILD FAILED >>> >>> Total time: 4 mins 13.648 secs >>> >>> i tried so many solutions but nothing happens! >>> please help! >>> >> >> -- >> Best Regards, >> Ashish Kumar Pandey >> HotWax Systems >> m: +91 9172388455 >> e: [hidden email] > > yeah, I have already set up the environment variable also... still facing the same issue! > smime.p7s (5K) Download Attachment |
On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> wrote: > It seems that the dependencies are not automatically downloaded during > the Gradle build. > > Do you have internet access from the machine running OFBiz? > > You may have to set up proxy settings if you are behind a proxy. > > Regards, > > Michael > could you please tell me how to fix this? > Am 18.02.19 um 07:24 schrieb [hidden email]: > > > > On 2019/02/15 13:04:56, Ashish Pandey <[hidden email]> wrote: > >> Hii, > >> > >> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? > >> > >> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > >> > >> Follow the instructions in the above link: > >> > >> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > >> > >> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > >> > >> Make sure the bin folder is in the root of C:\Program > >> Files\Java\jdk1.8.0_151. > >> > >> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > >> [hidden email]> wrote: > >> > >>> I am facing this issue during installation of the Apache Ofbiz > >>> > >>> > >>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > >>> :clean UP-TO-DATE > >>> :cleanAnt > >>> :cleanCatalina > >>> :cleanData > >>> :cleanDownloads > >>> :cleanEclipseClasspath UP-TO-DATE > >>> :cleanEclipseJdt UP-TO-DATE > >>> :cleanEclipseProject UP-TO-DATE > >>> :cleanEclipse UP-TO-DATE > >>> :cleanFooterFiles > >>> :cleanGradle > >>> :cleanIndexes > >>> :cleanLogs > >>> :cleanOutput > >>> :cleanTempfiles > >>> :cleanUploads > >>> :cleanXtra > >>> :cleanAll > >>> :compileJava > >>> Note: Some input files use unchecked or unsafe operations. > >>> Note: Recompile with -Xlint:unchecked for details. > >>> :processResources > >>> :classes > >>> :jar > >>> :assemble > >>> :compileTestJava > >>> :processTestResources UP-TO-DATE > >>> :testClasses > >>> :test > >>> :check > >>> :build > >>> :ofbiz --load-data > >>> Exception in thread "main" java.lang.NoClassDefFoundError: > >>> org/apache/commons/cli/ParseException > >>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) > >>> Caused by: java.lang.ClassNotFoundException: > >>> org.apache.commons.cli.ParseException > >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > >>> ... 1 more > >>> :ofbiz --load-data FAILED > >>> > >>> FAILURE: Build failed with an exception. > >>> > >>> * What went wrong: > >>> Execution failed for task ':ofbiz --load-data'. > >>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' > >>> finished with non-zero exit value 1 > >>> > >>> * Try: > >>> Run with --stacktrace option to get the stack trace. Run with --info or > >>> --debug option to get more log output. > >>> > >>> BUILD FAILED > >>> > >>> Total time: 4 mins 13.648 secs > >>> > >>> i tried so many solutions but nothing happens! > >>> please help! > >>> > >> > >> -- > >> Best Regards, > >> Ashish Kumar Pandey > >> HotWax Systems > >> m: +91 9172388455 > >> e: [hidden email] > > > > yeah, I have already set up the environment variable also... still facing the same issue! > > |
Fix what?
Are you behind a proxy? regards, Michael Am 18.02.19 um 10:07 schrieb [hidden email]: > > On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> wrote: >> It seems that the dependencies are not automatically downloaded during >> the Gradle build. >> >> Do you have internet access from the machine running OFBiz? >> >> You may have to set up proxy settings if you are behind a proxy. >> >> Regards, >> >> Michael >> > could you please tell me how to fix this? > >> Am 18.02.19 um 07:24 schrieb [hidden email]: >>> On 2019/02/15 13:04:56, Ashish Pandey <[hidden email]> wrote: >>>> Hii, >>>> >>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? >>>> >>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ >>>> >>>> Follow the instructions in the above link: >>>> >>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 >>>> >>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 >>>> >>>> Make sure the bin folder is in the root of C:\Program >>>> Files\Java\jdk1.8.0_151. >>>> >>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < >>>> [hidden email]> wrote: >>>> >>>>> I am facing this issue during installation of the Apache Ofbiz >>>>> >>>>> >>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault >>>>> :clean UP-TO-DATE >>>>> :cleanAnt >>>>> :cleanCatalina >>>>> :cleanData >>>>> :cleanDownloads >>>>> :cleanEclipseClasspath UP-TO-DATE >>>>> :cleanEclipseJdt UP-TO-DATE >>>>> :cleanEclipseProject UP-TO-DATE >>>>> :cleanEclipse UP-TO-DATE >>>>> :cleanFooterFiles >>>>> :cleanGradle >>>>> :cleanIndexes >>>>> :cleanLogs >>>>> :cleanOutput >>>>> :cleanTempfiles >>>>> :cleanUploads >>>>> :cleanXtra >>>>> :cleanAll >>>>> :compileJava >>>>> Note: Some input files use unchecked or unsafe operations. >>>>> Note: Recompile with -Xlint:unchecked for details. >>>>> :processResources >>>>> :classes >>>>> :jar >>>>> :assemble >>>>> :compileTestJava >>>>> :processTestResources UP-TO-DATE >>>>> :testClasses >>>>> :test >>>>> :check >>>>> :build >>>>> :ofbiz --load-data >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>> org/apache/commons/cli/ParseException >>>>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) >>>>> Caused by: java.lang.ClassNotFoundException: >>>>> org.apache.commons.cli.ParseException >>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>>>> ... 1 more >>>>> :ofbiz --load-data FAILED >>>>> >>>>> FAILURE: Build failed with an exception. >>>>> >>>>> * What went wrong: >>>>> Execution failed for task ':ofbiz --load-data'. >>>>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' >>>>> finished with non-zero exit value 1 >>>>> >>>>> * Try: >>>>> Run with --stacktrace option to get the stack trace. Run with --info or >>>>> --debug option to get more log output. >>>>> >>>>> BUILD FAILED >>>>> >>>>> Total time: 4 mins 13.648 secs >>>>> >>>>> i tried so many solutions but nothing happens! >>>>> please help! >>>>> >>>> -- >>>> Best Regards, >>>> Ashish Kumar Pandey >>>> HotWax Systems >>>> m: +91 9172388455 >>>> e: [hidden email] >>> yeah, I have already set up the environment variable also... still facing the same issue! >>> smime.p7s (5K) Download Attachment |
On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> wrote: > Fix what? > > Are you behind a proxy? > > regards, > > Michael > > > Am 18.02.19 um 10:07 schrieb [hidden email]: > > > > On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> wrote: > >> It seems that the dependencies are not automatically downloaded during > >> the Gradle build. > >> > >> Do you have internet access from the machine running OFBiz? > >> > >> You may have to set up proxy settings if you are behind a proxy. > >> > >> Regards, > >> > >> Michael > >> > > could you please tell me how to fix this? > > > >> Am 18.02.19 um 07:24 schrieb [hidden email]: > >>> On 2019/02/15 13:04:56, Ashish Pandey <[hidden email]> wrote: > >>>> Hii, > >>>> > >>>> Did you try setting environment variables for JAVA_HOME and OFBIZ_HOME? > >>>> > >>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > >>>> > >>>> Follow the instructions in the above link: > >>>> > >>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > >>>> > >>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > >>>> > >>>> Make sure the bin folder is in the root of C:\Program > >>>> Files\Java\jdk1.8.0_151. > >>>> > >>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > >>>> [hidden email]> wrote: > >>>> > >>>>> I am facing this issue during installation of the Apache Ofbiz > >>>>> > >>>>> > >>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > >>>>> :clean UP-TO-DATE > >>>>> :cleanAnt > >>>>> :cleanCatalina > >>>>> :cleanData > >>>>> :cleanDownloads > >>>>> :cleanEclipseClasspath UP-TO-DATE > >>>>> :cleanEclipseJdt UP-TO-DATE > >>>>> :cleanEclipseProject UP-TO-DATE > >>>>> :cleanEclipse UP-TO-DATE > >>>>> :cleanFooterFiles > >>>>> :cleanGradle > >>>>> :cleanIndexes > >>>>> :cleanLogs > >>>>> :cleanOutput > >>>>> :cleanTempfiles > >>>>> :cleanUploads > >>>>> :cleanXtra > >>>>> :cleanAll > >>>>> :compileJava > >>>>> Note: Some input files use unchecked or unsafe operations. > >>>>> Note: Recompile with -Xlint:unchecked for details. > >>>>> :processResources > >>>>> :classes > >>>>> :jar > >>>>> :assemble > >>>>> :compileTestJava > >>>>> :processTestResources UP-TO-DATE > >>>>> :testClasses > >>>>> :test > >>>>> :check > >>>>> :build > >>>>> :ofbiz --load-data > >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: > >>>>> org/apache/commons/cli/ParseException > >>>>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) > >>>>> Caused by: java.lang.ClassNotFoundException: > >>>>> org.apache.commons.cli.ParseException > >>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > >>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > >>>>> ... 1 more > >>>>> :ofbiz --load-data FAILED > >>>>> > >>>>> FAILURE: Build failed with an exception. > >>>>> > >>>>> * What went wrong: > >>>>> Execution failed for task ':ofbiz --load-data'. > >>>>>> Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' > >>>>> finished with non-zero exit value 1 > >>>>> > >>>>> * Try: > >>>>> Run with --stacktrace option to get the stack trace. Run with --info or > >>>>> --debug option to get more log output. > >>>>> > >>>>> BUILD FAILED > >>>>> > >>>>> Total time: 4 mins 13.648 secs > >>>>> > >>>>> i tried so many solutions but nothing happens! > >>>>> please help! > >>>>> > >>>> -- > >>>> Best Regards, > >>>> Ashish Kumar Pandey > >>>> HotWax Systems > >>>> m: +91 9172388455 > >>>> e: [hidden email] > >>> yeah, I have already set up the environment variable also... still facing the same issue! > >>> > > no i m not using any kind of proxy!! |
Hi,
As others have said, it appears Gradle is not downloading the dependencies you need. org.apache.commons.cli.ParseException is nothing special, a class in the Apache Commons library. If you are missing that, you may be missing plenty of other things as well. Perhaps there was a timeout while gradle was downloading dependencies, and perhaps your build computer can't connect to the Internet at all at the moment - which is why the question about proxies. Try this: gradlew build --refresh-dependencies (on Linux, ./gradlew build --refresh-dependencies). Gradle should download many dependencies. If that seems to work, try your gradlew cleanAll loadDefault again. Hope that helps. Paul Foxworthy On Tue, 19 Feb 2019 at 16:17, [hidden email] < [hidden email]> wrote: > > > On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> wrote: > > Fix what? > > > > Are you behind a proxy? > > > > regards, > > > > Michael > > > > > > Am 18.02.19 um 10:07 schrieb [hidden email]: > > > > > > On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> > wrote: > > >> It seems that the dependencies are not automatically downloaded during > > >> the Gradle build. > > >> > > >> Do you have internet access from the machine running OFBiz? > > >> > > >> You may have to set up proxy settings if you are behind a proxy. > > >> > > >> Regards, > > >> > > >> Michael > > >> > > > could you please tell me how to fix this? > > > > > >> Am 18.02.19 um 07:24 schrieb [hidden email]: > > >>> On 2019/02/15 13:04:56, Ashish Pandey < > [hidden email]> wrote: > > >>>> Hii, > > >>>> > > >>>> Did you try setting environment variables for JAVA_HOME and > OFBIZ_HOME? > > >>>> > > >>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > > >>>> > > >>>> Follow the instructions in the above link: > > >>>> > > >>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > > >>>> > > >>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > > >>>> > > >>>> Make sure the bin folder is in the root of C:\Program > > >>>> Files\Java\jdk1.8.0_151. > > >>>> > > >>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > > >>>> [hidden email]> wrote: > > >>>> > > >>>>> I am facing this issue during installation of the Apache Ofbiz > > >>>>> > > >>>>> > > >>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > > >>>>> :clean UP-TO-DATE > > >>>>> :cleanAnt > > >>>>> :cleanCatalina > > >>>>> :cleanData > > >>>>> :cleanDownloads > > >>>>> :cleanEclipseClasspath UP-TO-DATE > > >>>>> :cleanEclipseJdt UP-TO-DATE > > >>>>> :cleanEclipseProject UP-TO-DATE > > >>>>> :cleanEclipse UP-TO-DATE > > >>>>> :cleanFooterFiles > > >>>>> :cleanGradle > > >>>>> :cleanIndexes > > >>>>> :cleanLogs > > >>>>> :cleanOutput > > >>>>> :cleanTempfiles > > >>>>> :cleanUploads > > >>>>> :cleanXtra > > >>>>> :cleanAll > > >>>>> :compileJava > > >>>>> Note: Some input files use unchecked or unsafe operations. > > >>>>> Note: Recompile with -Xlint:unchecked for details. > > >>>>> :processResources > > >>>>> :classes > > >>>>> :jar > > >>>>> :assemble > > >>>>> :compileTestJava > > >>>>> :processTestResources UP-TO-DATE > > >>>>> :testClasses > > >>>>> :test > > >>>>> :check > > >>>>> :build > > >>>>> :ofbiz --load-data > > >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: > > >>>>> org/apache/commons/cli/ParseException > > >>>>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) > > >>>>> Caused by: java.lang.ClassNotFoundException: > > >>>>> org.apache.commons.cli.ParseException > > >>>>> at > java.net.URLClassLoader.findClass(URLClassLoader.java:382) > > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > >>>>> at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > >>>>> ... 1 more > > >>>>> :ofbiz --load-data FAILED > > >>>>> > > >>>>> FAILURE: Build failed with an exception. > > >>>>> > > >>>>> * What went wrong: > > >>>>> Execution failed for task ':ofbiz --load-data'. > > >>>>>> Process 'command 'C:\Program > Files\Java\jdk1.8.0_201\bin\java.exe'' > > >>>>> finished with non-zero exit value 1 > > >>>>> > > >>>>> * Try: > > >>>>> Run with --stacktrace option to get the stack trace. Run with > --info or > > >>>>> --debug option to get more log output. > > >>>>> > > >>>>> BUILD FAILED > > >>>>> > > >>>>> Total time: 4 mins 13.648 secs > > >>>>> > > >>>>> i tried so many solutions but nothing happens! > > >>>>> please help! > > >>>>> > > >>>> -- > > >>>> Best Regards, > > >>>> Ashish Kumar Pandey > > >>>> HotWax Systems > > >>>> m: +91 9172388455 > > >>>> e: [hidden email] > > >>> yeah, I have already set up the environment variable also... still > facing the same issue! > > >>> > > > > no i m not using any kind of proxy!! > how to fix this load data failed error? > -- Coherent Software Australia Pty Ltd PO Box 2773 Cheltenham Vic 3192 Australia Phone: +61 3 9585 6788 Web: http://www.coherentsoftware.com.au/ Email: [hidden email]
--
Coherent Software Australia Pty Ltd http://www.coherentsoftware.com.au/ Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/ |
On 2019/02/19 06:04:14, Paul Foxworthy <[hidden email]> wrote: > Hi, > > As others have said, it appears Gradle is not downloading the dependencies > you need. > > org.apache.commons.cli.ParseException is nothing special, a class in the > Apache Commons library. If you are missing that, you may be missing plenty > of other things as well. Perhaps there was a timeout while gradle was > downloading dependencies, and perhaps your build computer can't connect to > the Internet at all at the moment - which is why the question about proxies. > > Try this: > > gradlew build --refresh-dependencies > > (on Linux, ./gradlew build --refresh-dependencies). > > Gradle should download many dependencies. If that seems to work, try > your gradlew > cleanAll loadDefault again. > > Hope that helps. > > Paul Foxworthy > > On Tue, 19 Feb 2019 at 16:17, [hidden email] < > [hidden email]> wrote: > > > > > > > On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> wrote: > > > Fix what? > > > > > > Are you behind a proxy? > > > > > > regards, > > > > > > Michael > > > > > > > > > Am 18.02.19 um 10:07 schrieb [hidden email]: > > > > > > > > On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> > > wrote: > > > >> It seems that the dependencies are not automatically downloaded during > > > >> the Gradle build. > > > >> > > > >> Do you have internet access from the machine running OFBiz? > > > >> > > > >> You may have to set up proxy settings if you are behind a proxy. > > > >> > > > >> Regards, > > > >> > > > >> Michael > > > >> > > > > could you please tell me how to fix this? > > > > > > > >> Am 18.02.19 um 07:24 schrieb [hidden email]: > > > >>> On 2019/02/15 13:04:56, Ashish Pandey < > > [hidden email]> wrote: > > > >>>> Hii, > > > >>>> > > > >>>> Did you try setting environment variables for JAVA_HOME and > > OFBIZ_HOME? > > > >>>> > > > >>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > > > >>>> > > > >>>> Follow the instructions in the above link: > > > >>>> > > > >>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > > > >>>> > > > >>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > > > >>>> > > > >>>> Make sure the bin folder is in the root of C:\Program > > > >>>> Files\Java\jdk1.8.0_151. > > > >>>> > > > >>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > > > >>>> [hidden email]> wrote: > > > >>>> > > > >>>>> I am facing this issue during installation of the Apache Ofbiz > > > >>>>> > > > >>>>> > > > >>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > > > >>>>> :clean UP-TO-DATE > > > >>>>> :cleanAnt > > > >>>>> :cleanCatalina > > > >>>>> :cleanData > > > >>>>> :cleanDownloads > > > >>>>> :cleanEclipseClasspath UP-TO-DATE > > > >>>>> :cleanEclipseJdt UP-TO-DATE > > > >>>>> :cleanEclipseProject UP-TO-DATE > > > >>>>> :cleanEclipse UP-TO-DATE > > > >>>>> :cleanFooterFiles > > > >>>>> :cleanGradle > > > >>>>> :cleanIndexes > > > >>>>> :cleanLogs > > > >>>>> :cleanOutput > > > >>>>> :cleanTempfiles > > > >>>>> :cleanUploads > > > >>>>> :cleanXtra > > > >>>>> :cleanAll > > > >>>>> :compileJava > > > >>>>> Note: Some input files use unchecked or unsafe operations. > > > >>>>> Note: Recompile with -Xlint:unchecked for details. > > > >>>>> :processResources > > > >>>>> :classes > > > >>>>> :jar > > > >>>>> :assemble > > > >>>>> :compileTestJava > > > >>>>> :processTestResources UP-TO-DATE > > > >>>>> :testClasses > > > >>>>> :test > > > >>>>> :check > > > >>>>> :build > > > >>>>> :ofbiz --load-data > > > >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: > > > >>>>> org/apache/commons/cli/ParseException > > > >>>>> at org.apache.ofbiz.base.start.Start.main(Start.java:60) > > > >>>>> Caused by: java.lang.ClassNotFoundException: > > > >>>>> org.apache.commons.cli.ParseException > > > >>>>> at > > java.net.URLClassLoader.findClass(URLClassLoader.java:382) > > > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > > >>>>> at > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > > >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > > >>>>> ... 1 more > > > >>>>> :ofbiz --load-data FAILED > > > >>>>> > > > >>>>> FAILURE: Build failed with an exception. > > > >>>>> > > > >>>>> * What went wrong: > > > >>>>> Execution failed for task ':ofbiz --load-data'. > > > >>>>>> Process 'command 'C:\Program > > Files\Java\jdk1.8.0_201\bin\java.exe'' > > > >>>>> finished with non-zero exit value 1 > > > >>>>> > > > >>>>> * Try: > > > >>>>> Run with --stacktrace option to get the stack trace. Run with > > --info or > > > >>>>> --debug option to get more log output. > > > >>>>> > > > >>>>> BUILD FAILED > > > >>>>> > > > >>>>> Total time: 4 mins 13.648 secs > > > >>>>> > > > >>>>> i tried so many solutions but nothing happens! > > > >>>>> please help! > > > >>>>> > > > >>>> -- > > > >>>> Best Regards, > > > >>>> Ashish Kumar Pandey > > > >>>> HotWax Systems > > > >>>> m: +91 9172388455 > > > >>>> e: [hidden email] > > > >>> yeah, I have already set up the environment variable also... still > > facing the same issue! > > > >>> > > > > > > no i m not using any kind of proxy!! > > how to fix this load data failed error? > > > > > -- > Coherent Software Australia Pty Ltd > PO Box 2773 > Cheltenham Vic 3192 > Australia > > Phone: +61 3 9585 6788 > Web: http://www.coherentsoftware.com.au/ > Email: [hidden email] > C:\apache-ofbiz-16.11.01>gradlew build --refresh-dependencies POM relocation to an other version number is not fully supported in Gradle : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2. Please update your dependency to directly use the correct version 'xml-apis#xml-apis;1.0.b2'. Resolution will only pick dependencies of the relocated element. Artifacts and other metadata will be ignored. :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :check UP-TO-DATE :build UP-TO-DATE BUILD SUCCESSFUL still facing the same issue when i run gradlew cleanAll loadDefault again! :( i don't know what to do now! HELP!!! |
Hello chhokershaab.com,
pls write reply on top of thread instead of bottom. Please do not make the process of helping tedious. Also a signature allows people to know whom they are interacting with. I am not sure about windows but getting OFBiz working on linux boxes is pretty straightforward. I am not saying it should be difficult on windows , but i just do not have experience there. regds Rajesh mallah (redgrape.tech) On Tue, Feb 19, 2019 at 12:14 PM [hidden email] < [hidden email]> wrote: > > > On 2019/02/19 06:04:14, Paul Foxworthy <[hidden email]> wrote: > > Hi, > > > > As others have said, it appears Gradle is not downloading the > dependencies > > you need. > > > > org.apache.commons.cli.ParseException is nothing special, a class in the > > Apache Commons library. If you are missing that, you may be missing > plenty > > of other things as well. Perhaps there was a timeout while gradle was > > downloading dependencies, and perhaps your build computer can't connect > to > > the Internet at all at the moment - which is why the question about > proxies. > > > > Try this: > > > > gradlew build --refresh-dependencies > > > > (on Linux, ./gradlew build --refresh-dependencies). > > > > Gradle should download many dependencies. If that seems to work, try > > your gradlew > > cleanAll loadDefault again. > > > > Hope that helps. > > > > Paul Foxworthy > > > > On Tue, 19 Feb 2019 at 16:17, [hidden email] < > > [hidden email]> wrote: > > > > > > > > > > > On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> > wrote: > > > > Fix what? > > > > > > > > Are you behind a proxy? > > > > > > > > regards, > > > > > > > > Michael > > > > > > > > > > > > Am 18.02.19 um 10:07 schrieb [hidden email]: > > > > > > > > > > On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> > > > wrote: > > > > >> It seems that the dependencies are not automatically downloaded > during > > > > >> the Gradle build. > > > > >> > > > > >> Do you have internet access from the machine running OFBiz? > > > > >> > > > > >> You may have to set up proxy settings if you are behind a proxy. > > > > >> > > > > >> Regards, > > > > >> > > > > >> Michael > > > > >> > > > > > could you please tell me how to fix this? > > > > > > > > > >> Am 18.02.19 um 07:24 schrieb [hidden email]: > > > > >>> On 2019/02/15 13:04:56, Ashish Pandey < > > > [hidden email]> wrote: > > > > >>>> Hii, > > > > >>>> > > > > >>>> Did you try setting environment variables for JAVA_HOME and > > > OFBIZ_HOME? > > > > >>>> > > > > >>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ > > > > >>>> > > > > >>>> Follow the instructions in the above link: > > > > >>>> > > > > >>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 > > > > >>>> > > > > >>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 > > > > >>>> > > > > >>>> Make sure the bin folder is in the root of C:\Program > > > > >>>> Files\Java\jdk1.8.0_151. > > > > >>>> > > > > >>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < > > > > >>>> [hidden email]> wrote: > > > > >>>> > > > > >>>>> I am facing this issue during installation of the Apache Ofbiz > > > > >>>>> > > > > >>>>> > > > > >>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault > > > > >>>>> :clean UP-TO-DATE > > > > >>>>> :cleanAnt > > > > >>>>> :cleanCatalina > > > > >>>>> :cleanData > > > > >>>>> :cleanDownloads > > > > >>>>> :cleanEclipseClasspath UP-TO-DATE > > > > >>>>> :cleanEclipseJdt UP-TO-DATE > > > > >>>>> :cleanEclipseProject UP-TO-DATE > > > > >>>>> :cleanEclipse UP-TO-DATE > > > > >>>>> :cleanFooterFiles > > > > >>>>> :cleanGradle > > > > >>>>> :cleanIndexes > > > > >>>>> :cleanLogs > > > > >>>>> :cleanOutput > > > > >>>>> :cleanTempfiles > > > > >>>>> :cleanUploads > > > > >>>>> :cleanXtra > > > > >>>>> :cleanAll > > > > >>>>> :compileJava > > > > >>>>> Note: Some input files use unchecked or unsafe operations. > > > > >>>>> Note: Recompile with -Xlint:unchecked for details. > > > > >>>>> :processResources > > > > >>>>> :classes > > > > >>>>> :jar > > > > >>>>> :assemble > > > > >>>>> :compileTestJava > > > > >>>>> :processTestResources UP-TO-DATE > > > > >>>>> :testClasses > > > > >>>>> :test > > > > >>>>> :check > > > > >>>>> :build > > > > >>>>> :ofbiz --load-data > > > > >>>>> Exception in thread "main" java.lang.NoClassDefFoundError: > > > > >>>>> org/apache/commons/cli/ParseException > > > > >>>>> at > org.apache.ofbiz.base.start.Start.main(Start.java:60) > > > > >>>>> Caused by: java.lang.ClassNotFoundException: > > > > >>>>> org.apache.commons.cli.ParseException > > > > >>>>> at > > > java.net.URLClassLoader.findClass(URLClassLoader.java:382) > > > > >>>>> at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > > > >>>>> at > > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) > > > > >>>>> at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > > > >>>>> ... 1 more > > > > >>>>> :ofbiz --load-data FAILED > > > > >>>>> > > > > >>>>> FAILURE: Build failed with an exception. > > > > >>>>> > > > > >>>>> * What went wrong: > > > > >>>>> Execution failed for task ':ofbiz --load-data'. > > > > >>>>>> Process 'command 'C:\Program > > > Files\Java\jdk1.8.0_201\bin\java.exe'' > > > > >>>>> finished with non-zero exit value 1 > > > > >>>>> > > > > >>>>> * Try: > > > > >>>>> Run with --stacktrace option to get the stack trace. Run with > > > --info or > > > > >>>>> --debug option to get more log output. > > > > >>>>> > > > > >>>>> BUILD FAILED > > > > >>>>> > > > > >>>>> Total time: 4 mins 13.648 secs > > > > >>>>> > > > > >>>>> i tried so many solutions but nothing happens! > > > > >>>>> please help! > > > > >>>>> > > > > >>>> -- > > > > >>>> Best Regards, > > > > >>>> Ashish Kumar Pandey > > > > >>>> HotWax Systems > > > > >>>> m: +91 9172388455 > > > > >>>> e: [hidden email] > > > > >>> yeah, I have already set up the environment variable also... > still > > > facing the same issue! > > > > >>> > > > > > > > > no i m not using any kind of proxy!! > > > how to fix this load data failed error? > > > > > > > > > -- > > Coherent Software Australia Pty Ltd > > PO Box 2773 > > Cheltenham Vic 3192 > > Australia > > > > Phone: +61 3 9585 6788 > > Web: http://www.coherentsoftware.com.au/ > > Email: [hidden email] > > > i tried now showing this > > C:\apache-ofbiz-16.11.01>gradlew build --refresh-dependencies > POM relocation to an other version number is not fully supported in Gradle > : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2. > Please update your dependency to directly use the correct version > 'xml-apis#xml-apis;1.0.b2'. > Resolution will only pick dependencies of the relocated element. > Artifacts and other metadata will be ignored. > :compileJava UP-TO-DATE > :processResources UP-TO-DATE > :classes UP-TO-DATE > :jar UP-TO-DATE > :assemble UP-TO-DATE > :compileTestJava UP-TO-DATE > :processTestResources UP-TO-DATE > :testClasses UP-TO-DATE > :test UP-TO-DATE > :check UP-TO-DATE > :build UP-TO-DATE > > BUILD SUCCESSFUL > > still facing the same issue when i run gradlew cleanAll loadDefault again! > :( > i don't know what to do now! > HELP!!! > > |
Administrator
|
Hi chhokershaab.com,
There are no issues running on Windows 7 (I use it mostly) not sure about Windows 10 but I guess there are no problems either. Anyway, I saw you used the last R16 version before, you should better use that even if it's not related to your problem. When you will get it working (hopefully) you will be safe, previous versions have security issues Jacques Le 19/02/2019 à 08:38, Rajesh Mallah a écrit : > Hello chhokershaab.com, > > pls write reply on top of thread instead of bottom. Please do not make > the process of helping tedious. > > Also a signature allows people to know whom they > are interacting with. > > I am not sure about windows but getting OFBiz working on > linux boxes is pretty straightforward. > > I am not saying it should be difficult on windows , but i just do not > have experience there. > > regds > Rajesh mallah > > (redgrape.tech) > > On Tue, Feb 19, 2019 at 12:14 PM [hidden email] < > [hidden email]> wrote: > >> >> On 2019/02/19 06:04:14, Paul Foxworthy <[hidden email]> wrote: >>> Hi, >>> >>> As others have said, it appears Gradle is not downloading the >> dependencies >>> you need. >>> >>> org.apache.commons.cli.ParseException is nothing special, a class in the >>> Apache Commons library. If you are missing that, you may be missing >> plenty >>> of other things as well. Perhaps there was a timeout while gradle was >>> downloading dependencies, and perhaps your build computer can't connect >> to >>> the Internet at all at the moment - which is why the question about >> proxies. >>> Try this: >>> >>> gradlew build --refresh-dependencies >>> >>> (on Linux, ./gradlew build --refresh-dependencies). >>> >>> Gradle should download many dependencies. If that seems to work, try >>> your gradlew >>> cleanAll loadDefault again. >>> >>> Hope that helps. >>> >>> Paul Foxworthy >>> >>> On Tue, 19 Feb 2019 at 16:17, [hidden email] < >>> [hidden email]> wrote: >>> >>>> >>>> On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> >> wrote: >>>>> Fix what? >>>>> >>>>> Are you behind a proxy? >>>>> >>>>> regards, >>>>> >>>>> Michael >>>>> >>>>> >>>>> Am 18.02.19 um 10:07 schrieb [hidden email]: >>>>>> On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> >>>> wrote: >>>>>>> It seems that the dependencies are not automatically downloaded >> during >>>>>>> the Gradle build. >>>>>>> >>>>>>> Do you have internet access from the machine running OFBiz? >>>>>>> >>>>>>> You may have to set up proxy settings if you are behind a proxy. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Michael >>>>>>> >>>>>> could you please tell me how to fix this? >>>>>> >>>>>>> Am 18.02.19 um 07:24 schrieb [hidden email]: >>>>>>>> On 2019/02/15 13:04:56, Ashish Pandey < >>>> [hidden email]> wrote: >>>>>>>>> Hii, >>>>>>>>> >>>>>>>>> Did you try setting environment variables for JAVA_HOME and >>>> OFBIZ_HOME? >>>>>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ >>>>>>>>> >>>>>>>>> Follow the instructions in the above link: >>>>>>>>> >>>>>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 >>>>>>>>> >>>>>>>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 >>>>>>>>> >>>>>>>>> Make sure the bin folder is in the root of C:\Program >>>>>>>>> Files\Java\jdk1.8.0_151. >>>>>>>>> >>>>>>>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < >>>>>>>>> [hidden email]> wrote: >>>>>>>>> >>>>>>>>>> I am facing this issue during installation of the Apache Ofbiz >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault >>>>>>>>>> :clean UP-TO-DATE >>>>>>>>>> :cleanAnt >>>>>>>>>> :cleanCatalina >>>>>>>>>> :cleanData >>>>>>>>>> :cleanDownloads >>>>>>>>>> :cleanEclipseClasspath UP-TO-DATE >>>>>>>>>> :cleanEclipseJdt UP-TO-DATE >>>>>>>>>> :cleanEclipseProject UP-TO-DATE >>>>>>>>>> :cleanEclipse UP-TO-DATE >>>>>>>>>> :cleanFooterFiles >>>>>>>>>> :cleanGradle >>>>>>>>>> :cleanIndexes >>>>>>>>>> :cleanLogs >>>>>>>>>> :cleanOutput >>>>>>>>>> :cleanTempfiles >>>>>>>>>> :cleanUploads >>>>>>>>>> :cleanXtra >>>>>>>>>> :cleanAll >>>>>>>>>> :compileJava >>>>>>>>>> Note: Some input files use unchecked or unsafe operations. >>>>>>>>>> Note: Recompile with -Xlint:unchecked for details. >>>>>>>>>> :processResources >>>>>>>>>> :classes >>>>>>>>>> :jar >>>>>>>>>> :assemble >>>>>>>>>> :compileTestJava >>>>>>>>>> :processTestResources UP-TO-DATE >>>>>>>>>> :testClasses >>>>>>>>>> :test >>>>>>>>>> :check >>>>>>>>>> :build >>>>>>>>>> :ofbiz --load-data >>>>>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>>>>>> org/apache/commons/cli/ParseException >>>>>>>>>> at >> org.apache.ofbiz.base.start.Start.main(Start.java:60) >>>>>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>>>>> org.apache.commons.cli.ParseException >>>>>>>>>> at >>>> java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>>>>>>>>> at >> java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>>>>>>>>> at >>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) >>>>>>>>>> at >> java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>>>>>>>>> ... 1 more >>>>>>>>>> :ofbiz --load-data FAILED >>>>>>>>>> >>>>>>>>>> FAILURE: Build failed with an exception. >>>>>>>>>> >>>>>>>>>> * What went wrong: >>>>>>>>>> Execution failed for task ':ofbiz --load-data'. >>>>>>>>>>> Process 'command 'C:\Program >>>> Files\Java\jdk1.8.0_201\bin\java.exe'' >>>>>>>>>> finished with non-zero exit value 1 >>>>>>>>>> >>>>>>>>>> * Try: >>>>>>>>>> Run with --stacktrace option to get the stack trace. Run with >>>> --info or >>>>>>>>>> --debug option to get more log output. >>>>>>>>>> >>>>>>>>>> BUILD FAILED >>>>>>>>>> >>>>>>>>>> Total time: 4 mins 13.648 secs >>>>>>>>>> >>>>>>>>>> i tried so many solutions but nothing happens! >>>>>>>>>> please help! >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards, >>>>>>>>> Ashish Kumar Pandey >>>>>>>>> HotWax Systems >>>>>>>>> m: +91 9172388455 >>>>>>>>> e: [hidden email] >>>>>>>> yeah, I have already set up the environment variable also... >> still >>>> facing the same issue! >>>>> no i m not using any kind of proxy!! >>>> how to fix this load data failed error? >>>> >>> >>> -- >>> Coherent Software Australia Pty Ltd >>> PO Box 2773 >>> Cheltenham Vic 3192 >>> Australia >>> >>> Phone: +61 3 9585 6788 >>> Web: http://www.coherentsoftware.com.au/ >>> Email: [hidden email] >>> >> i tried now showing this >> >> C:\apache-ofbiz-16.11.01>gradlew build --refresh-dependencies >> POM relocation to an other version number is not fully supported in Gradle >> : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2. >> Please update your dependency to directly use the correct version >> 'xml-apis#xml-apis;1.0.b2'. >> Resolution will only pick dependencies of the relocated element. >> Artifacts and other metadata will be ignored. >> :compileJava UP-TO-DATE >> :processResources UP-TO-DATE >> :classes UP-TO-DATE >> :jar UP-TO-DATE >> :assemble UP-TO-DATE >> :compileTestJava UP-TO-DATE >> :processTestResources UP-TO-DATE >> :testClasses UP-TO-DATE >> :test UP-TO-DATE >> :check UP-TO-DATE >> :build UP-TO-DATE >> >> BUILD SUCCESSFUL >> >> still facing the same issue when i run gradlew cleanAll loadDefault again! >> :( >> i don't know what to do now! >> HELP!!! >> >> |
In reply to this post by Ashish Pandey
I'm using OFBiz on Windows 10 without any problem.
I guess it's a DNS problem which causes the user cannot fetch the artifacts successfully. This happens in our Beijing office, and our developers there have to use mobile phone to access jcenter. -----邮件原件----- 发件人: Jacques Le Roux [mailto:[hidden email]] 发送时间: 2019年2月19日 16:23 收件人: [hidden email] 主题: Re: how to fix this :ofbiz --load-data FAILED in windows 10 (URGENT) Hi chhokershaab.com, There are no issues running on Windows 7 (I use it mostly) not sure about Windows 10 but I guess there are no problems either. Anyway, I saw you used the last R16 version before, you should better use that even if it's not related to your problem. When you will get it working (hopefully) you will be safe, previous versions have security issues Jacques Le 19/02/2019 à 08:38, Rajesh Mallah a écrit : > Hello chhokershaab.com, > > pls write reply on top of thread instead of bottom. Please do not make > the process of helping tedious. > > Also a signature allows people to know whom they > are interacting with. > > I am not sure about windows but getting OFBiz working on > linux boxes is pretty straightforward. > > I am not saying it should be difficult on windows , but i just do not > have experience there. > > regds > Rajesh mallah > > (redgrape.tech) > > On Tue, Feb 19, 2019 at 12:14 PM [hidden email] < > [hidden email]> wrote: > >> >> On 2019/02/19 06:04:14, Paul Foxworthy <[hidden email]> wrote: >>> Hi, >>> >>> As others have said, it appears Gradle is not downloading the >> dependencies >>> you need. >>> >>> org.apache.commons.cli.ParseException is nothing special, a class in the >>> Apache Commons library. If you are missing that, you may be missing >> plenty >>> of other things as well. Perhaps there was a timeout while gradle was >>> downloading dependencies, and perhaps your build computer can't connect >> to >>> the Internet at all at the moment - which is why the question about >> proxies. >>> Try this: >>> >>> gradlew build --refresh-dependencies >>> >>> (on Linux, ./gradlew build --refresh-dependencies). >>> >>> Gradle should download many dependencies. If that seems to work, try >>> your gradlew >>> cleanAll loadDefault again. >>> >>> Hope that helps. >>> >>> Paul Foxworthy >>> >>> On Tue, 19 Feb 2019 at 16:17, [hidden email] < >>> [hidden email]> wrote: >>> >>>> >>>> On 2019/02/18 10:20:20, Michael Brohl <[hidden email]> >> wrote: >>>>> Fix what? >>>>> >>>>> Are you behind a proxy? >>>>> >>>>> regards, >>>>> >>>>> Michael >>>>> >>>>> >>>>> Am 18.02.19 um 10:07 schrieb [hidden email]: >>>>>> On 2019/02/18 07:20:29, Michael Brohl <[hidden email]> >>>> wrote: >>>>>>> It seems that the dependencies are not automatically downloaded >> during >>>>>>> the Gradle build. >>>>>>> >>>>>>> Do you have internet access from the machine running OFBiz? >>>>>>> >>>>>>> You may have to set up proxy settings if you are behind a proxy. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Michael >>>>>>> >>>>>> could you please tell me how to fix this? >>>>>> >>>>>>> Am 18.02.19 um 07:24 schrieb [hidden email]: >>>>>>>> On 2019/02/15 13:04:56, Ashish Pandey < >>>> [hidden email]> wrote: >>>>>>>>> Hii, >>>>>>>>> >>>>>>>>> Did you try setting environment variables for JAVA_HOME and >>>> OFBIZ_HOME? >>>>>>>>> https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/ >>>>>>>>> >>>>>>>>> Follow the instructions in the above link: >>>>>>>>> >>>>>>>>> JAVA_HOME = C:\Program Files\Java\jdk1.8.0_151 >>>>>>>>> >>>>>>>>> OFBIZ_HOME = C:\apache-ofbiz-16.11.03 >>>>>>>>> >>>>>>>>> Make sure the bin folder is in the root of C:\Program >>>>>>>>> Files\Java\jdk1.8.0_151. >>>>>>>>> >>>>>>>>> On Fri, Feb 15, 2019 at 3:47 PM [hidden email] < >>>>>>>>> [hidden email]> wrote: >>>>>>>>> >>>>>>>>>> I am facing this issue during installation of the Apache Ofbiz >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> C:\apache-ofbiz-16.11.05>gradlew cleanAll loadDefault >>>>>>>>>> :clean UP-TO-DATE >>>>>>>>>> :cleanAnt >>>>>>>>>> :cleanCatalina >>>>>>>>>> :cleanData >>>>>>>>>> :cleanDownloads >>>>>>>>>> :cleanEclipseClasspath UP-TO-DATE >>>>>>>>>> :cleanEclipseJdt UP-TO-DATE >>>>>>>>>> :cleanEclipseProject UP-TO-DATE >>>>>>>>>> :cleanEclipse UP-TO-DATE >>>>>>>>>> :cleanFooterFiles >>>>>>>>>> :cleanGradle >>>>>>>>>> :cleanIndexes >>>>>>>>>> :cleanLogs >>>>>>>>>> :cleanOutput >>>>>>>>>> :cleanTempfiles >>>>>>>>>> :cleanUploads >>>>>>>>>> :cleanXtra >>>>>>>>>> :cleanAll >>>>>>>>>> :compileJava >>>>>>>>>> Note: Some input files use unchecked or unsafe operations. >>>>>>>>>> Note: Recompile with -Xlint:unchecked for details. >>>>>>>>>> :processResources >>>>>>>>>> :classes >>>>>>>>>> :jar >>>>>>>>>> :assemble >>>>>>>>>> :compileTestJava >>>>>>>>>> :processTestResources UP-TO-DATE >>>>>>>>>> :testClasses >>>>>>>>>> :test >>>>>>>>>> :check >>>>>>>>>> :build >>>>>>>>>> :ofbiz --load-data >>>>>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>>>>>> org/apache/commons/cli/ParseException >>>>>>>>>> at >> org.apache.ofbiz.base.start.Start.main(Start.java:60) >>>>>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>>>>> org.apache.commons.cli.ParseException >>>>>>>>>> at >>>> java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>>>>>>>>> at >> java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>>>>>>>>> at >>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) >>>>>>>>>> at >> java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>>>>>>>>> ... 1 more >>>>>>>>>> :ofbiz --load-data FAILED >>>>>>>>>> >>>>>>>>>> FAILURE: Build failed with an exception. >>>>>>>>>> >>>>>>>>>> * What went wrong: >>>>>>>>>> Execution failed for task ':ofbiz --load-data'. >>>>>>>>>>> Process 'command 'C:\Program >>>> Files\Java\jdk1.8.0_201\bin\java.exe'' >>>>>>>>>> finished with non-zero exit value 1 >>>>>>>>>> >>>>>>>>>> * Try: >>>>>>>>>> Run with --stacktrace option to get the stack trace. Run with >>>> --info or >>>>>>>>>> --debug option to get more log output. >>>>>>>>>> >>>>>>>>>> BUILD FAILED >>>>>>>>>> >>>>>>>>>> Total time: 4 mins 13.648 secs >>>>>>>>>> >>>>>>>>>> i tried so many solutions but nothing happens! >>>>>>>>>> please help! >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards, >>>>>>>>> Ashish Kumar Pandey >>>>>>>>> HotWax Systems >>>>>>>>> m: +91 9172388455 >>>>>>>>> e: [hidden email] >>>>>>>> yeah, I have already set up the environment variable also... >> still >>>> facing the same issue! >>>>> no i m not using any kind of proxy!! >>>> how to fix this load data failed error? >>>> >>> >>> -- >>> Coherent Software Australia Pty Ltd >>> PO Box 2773 >>> Cheltenham Vic 3192 >>> Australia >>> >>> Phone: +61 3 9585 6788 >>> Web: http://www.coherentsoftware.com.au/ >>> Email: [hidden email] >>> >> i tried now showing this >> >> C:\apache-ofbiz-16.11.01>gradlew build --refresh-dependencies >> POM relocation to an other version number is not fully supported in Gradle >> : xml-apis#xml-apis;2.0.2 relocated to xml-apis#xml-apis;1.0.b2. >> Please update your dependency to directly use the correct version >> 'xml-apis#xml-apis;1.0.b2'. >> Resolution will only pick dependencies of the relocated element. >> Artifacts and other metadata will be ignored. >> :compileJava UP-TO-DATE >> :processResources UP-TO-DATE >> :classes UP-TO-DATE >> :jar UP-TO-DATE >> :assemble UP-TO-DATE >> :compileTestJava UP-TO-DATE >> :processTestResources UP-TO-DATE >> :testClasses UP-TO-DATE >> :test UP-TO-DATE >> :check UP-TO-DATE >> :build UP-TO-DATE >> >> BUILD SUCCESSFUL >> >> still facing the same issue when i run gradlew cleanAll loadDefault again! >> :( >> i don't know what to do now! >> HELP!!! >> >> |
Free forum by Nabble | Edit this page |