I've seen this problem reported, but not obviously fixed. I'm really
only interested in responses from people who have actually tried to build OFBiz on Windows 10. 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 I'm not really familiar with Gradle and it's not at all clear to me where java is being asked to look for commons-cli.jar. Why isn't this dependency automatically fetched and put in the right place for java to find it? Here's what happens when I try to follow the instructions. ----- PS C:\apache-ofbiz-16.11.05> ./gradlew.bat cleanAll loadDefault :clean :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 :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:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) 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_161\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: 57.071 secs ===== Regards, Michael Turner Executive Director Project Persephone 1-25-33 Takadanobaba Shinjuku-ku Tokyo 169-0075 Mobile: +81 (90) 5203-8682 [hidden email] Understand - http://www.projectpersephone.org/ Join - http://www.facebook.com/groups/ProjectPersephone/ Donate - http://www.patreon.com/ProjectPersephone Volunteer - https://github.com/ProjectPersephone "Love does not consist in gazing at each other, but in looking outward together in the same direction." -- Antoine de Saint-Exupéry |
Most likely a space issue. Make sure there are no spaces in the path
where you placed OFBiz such as "C:\users\My User\ofbiz" On Wed, Dec 19, 2018 at 12:18 PM Michael Turner <[hidden email]> wrote: > > I've seen this problem reported, but not obviously fixed. I'm really > only interested in responses from people who have actually tried to > build OFBiz on Windows 10. > > 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 > > I'm not really familiar with Gradle and it's not at all clear to me > where java is being asked to look for commons-cli.jar. Why isn't this > dependency automatically fetched and put in the right place for java > to find it? > > Here's what happens when I try to follow the instructions. > > ----- > PS C:\apache-ofbiz-16.11.05> ./gradlew.bat cleanAll loadDefault > :clean > :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 > :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:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) > 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_161\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: 57.071 secs > > ===== > > Regards, > Michael Turner > Executive Director > Project Persephone > 1-25-33 Takadanobaba > Shinjuku-ku Tokyo 169-0075 > Mobile: +81 (90) 5203-8682 > [hidden email] > > Understand - http://www.projectpersephone.org/ > Join - http://www.facebook.com/groups/ProjectPersephone/ > Donate - http://www.patreon.com/ProjectPersephone > Volunteer - https://github.com/ProjectPersephone > > "Love does not consist in gazing at each other, but in looking outward > together in the same direction." -- Antoine de Saint-Exupéry |
Dear Moderators,
please remove my email from this mail group. Thanks and merry Chrismas. Rob Am Mi., 19. Dez. 2018 um 12:24 Uhr schrieb Taher Alkhateeb < [hidden email]>: > Most likely a space issue. Make sure there are no spaces in the path > where you placed OFBiz such as "C:\users\My User\ofbiz" > > On Wed, Dec 19, 2018 at 12:18 PM Michael Turner > <[hidden email]> wrote: > > > > I've seen this problem reported, but not obviously fixed. I'm really > > only interested in responses from people who have actually tried to > > build OFBiz on Windows 10. > > > > 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 > > > > I'm not really familiar with Gradle and it's not at all clear to me > > where java is being asked to look for commons-cli.jar. Why isn't this > > dependency automatically fetched and put in the right place for java > > to find it? > > > > Here's what happens when I try to follow the instructions. > > > > ----- > > PS C:\apache-ofbiz-16.11.05> ./gradlew.bat cleanAll loadDefault > > :clean > > :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 > > :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:381) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) > > 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_161\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: 57.071 secs > > > > ===== > > > > Regards, > > Michael Turner > > Executive Director > > Project Persephone > > 1-25-33 Takadanobaba > > Shinjuku-ku Tokyo 169-0075 > > Mobile: +81 (90) 5203-8682 > > [hidden email] > > > > Understand - http://www.projectpersephone.org/ > > Join - http://www.facebook.com/groups/ProjectPersephone/ > > Donate - http://www.patreon.com/ProjectPersephone > > Volunteer - https://github.com/ProjectPersephone > > > > "Love does not consist in gazing at each other, but in looking outward > > together in the same direction." -- Antoine de Saint-Exupéry > |
In reply to this post by taher
Have you been able to get OFBiz built on Windows 10? As I said in the
original message, I'm not interested in replies from people who haven't tried. As for what you consider "most likely" as the source of problems (an embedded blank in the path), as you should have seen from the Powershell prompt in the transcript PS C:\apache-ofbiz-16.11.05> I'm building in C:\apache-ofbiz-16.11.05. I.e., I'm NOT building a directory with a name that has an embedded blank. Regards, Michael Turner Executive Director Project Persephone 1-25-33 Takadanobaba Shinjuku-ku Tokyo 169-0075 Mobile: +81 (90) 5203-8682 [hidden email] Understand - http://www.projectpersephone.org/ Join - http://www.facebook.com/groups/ProjectPersephone/ Donate - http://www.patreon.com/ProjectPersephone Volunteer - https://github.com/ProjectPersephone "Love does not consist in gazing at each other, but in looking outward together in the same direction." -- Antoine de Saint-Exupéry On Wed, Dec 19, 2018 at 8:24 PM Taher Alkhateeb <[hidden email]> wrote: > > Most likely a space issue. Make sure there are no spaces in the path > where you placed OFBiz such as "C:\users\My User\ofbiz" > > On Wed, Dec 19, 2018 at 12:18 PM Michael Turner > <[hidden email]> wrote: > > > > I've seen this problem reported, but not obviously fixed. I'm really > > only interested in responses from people who have actually tried to > > build OFBiz on Windows 10. > > > > 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 > > > > I'm not really familiar with Gradle and it's not at all clear to me > > where java is being asked to look for commons-cli.jar. Why isn't this > > dependency automatically fetched and put in the right place for java > > to find it? > > > > Here's what happens when I try to follow the instructions. > > > > ----- > > PS C:\apache-ofbiz-16.11.05> ./gradlew.bat cleanAll loadDefault > > :clean > > :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 > > :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:381) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) > > 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_161\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: 57.071 secs > > > > ===== > > > > Regards, > > Michael Turner > > Executive Director > > Project Persephone > > 1-25-33 Takadanobaba > > Shinjuku-ku Tokyo 169-0075 > > Mobile: +81 (90) 5203-8682 > > [hidden email] > > > > Understand - http://www.projectpersephone.org/ > > Join - http://www.facebook.com/groups/ProjectPersephone/ > > Donate - http://www.patreon.com/ProjectPersephone > > Volunteer - https://github.com/ProjectPersephone > > > > "Love does not consist in gazing at each other, but in looking outward > > together in the same direction." -- Antoine de Saint-Exupéry |
Administrator
|
In reply to this post by robinnguyen
Hi Robin,
Did you try yourself at ofbiz.apache.org/mailing-lists.html ? Jacques Le 19/12/2018 à 13:33, Robin Nguyen a écrit : > Dear Moderators, > > please remove my email from this mail group. > > Thanks and merry Chrismas. > > Rob > > Am Mi., 19. Dez. 2018 um 12:24 Uhr schrieb Taher Alkhateeb < > [hidden email]>: > >> Most likely a space issue. Make sure there are no spaces in the path >> where you placed OFBiz such as "C:\users\My User\ofbiz" >> >> On Wed, Dec 19, 2018 at 12:18 PM Michael Turner >> <[hidden email]> wrote: >>> I've seen this problem reported, but not obviously fixed. I'm really >>> only interested in responses from people who have actually tried to >>> build OFBiz on Windows 10. >>> >>> 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 >>> >>> I'm not really familiar with Gradle and it's not at all clear to me >>> where java is being asked to look for commons-cli.jar. Why isn't this >>> dependency automatically fetched and put in the right place for java >>> to find it? >>> >>> Here's what happens when I try to follow the instructions. >>> >>> ----- >>> PS C:\apache-ofbiz-16.11.05> ./gradlew.bat cleanAll loadDefault >>> :clean >>> :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 >>> :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:381) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) >>> 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_161\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: 57.071 secs >>> >>> ===== >>> >>> Regards, >>> Michael Turner >>> Executive Director >>> Project Persephone >>> 1-25-33 Takadanobaba >>> Shinjuku-ku Tokyo 169-0075 >>> Mobile: +81 (90) 5203-8682 >>> [hidden email] >>> >>> Understand - http://www.projectpersephone.org/ >>> Join - http://www.facebook.com/groups/ProjectPersephone/ >>> Donate - http://www.patreon.com/ProjectPersephone >>> Volunteer - https://github.com/ProjectPersephone >>> >>> "Love does not consist in gazing at each other, but in looking outward >>> together in the same direction." -- Antoine de Saint-Exupéry |
In reply to this post by Michael Turner
Hi,
It works for me on windows 10. After 2 days of searching for solutions online, from Turn windows feature on or off ->Windows subsystem for Linux->Restart and retry Good luck! |
Administrator
|
Thanks Anna Maria,
That's really a good news. Hi team, we need to document that further. I'll at least create an entry in the wiki FAQ. Jacques Le 19/01/2019 à 00:20, [hidden email] a écrit : > Hi, > > It works for me on windows 10. > After 2 days of searching for solutions online, > from Turn windows feature on or off ->Windows subsystem for Linux->Restart and retry > > Good luck! > > > |
Administrator
|
Finally done :)
https://s.apache.org/eiy7w Jacques Le 19/01/2019 à 04:08, Jacques Le Roux a écrit : > Thanks Anna Maria, > > That's really a good news. > > Hi team, we need to document that further. I'll at least create an entry in the wiki FAQ. > > Jacques > > Le 19/01/2019 à 00:20, [hidden email] a écrit : >> Hi, >> >> It works for me on windows 10. >> After 2 days of searching for solutions online, >> from Turn windows feature on or off ->Windows subsystem for Linux->Restart and retry >> >> Good luck! >> >> >> > |
Great, thank you Jacques, was much awaited TODO.
Best regards, Swapnil M Mane, ofbiz.apache.org On Fri, Sep 27, 2019 at 9:54 AM Jacques Le Roux < [hidden email]> wrote: > Finally done :) > > https://s.apache.org/eiy7w > > Jacques > > Le 19/01/2019 à 04:08, Jacques Le Roux a écrit : > > Thanks Anna Maria, > > > > That's really a good news. > > > > Hi team, we need to document that further. I'll at least create an entry > in the wiki FAQ. > > > > Jacques > > > > Le 19/01/2019 à 00:20, [hidden email] a écrit : > >> Hi, > >> > >> It works for me on windows 10. > >> After 2 days of searching for solutions online, > >> from Turn windows feature on or off ->Windows subsystem for > Linux->Restart and retry > >> > >> Good luck! > >> > >> > >> > > > |
Administrator
|
I don't forget (yet :D) ;)
Jacques Le 30/09/2019 à 07:42, Swapnil M Mane a écrit : > Great, thank you Jacques, was much awaited TODO. > > Best regards, > Swapnil M Mane, > ofbiz.apache.org > > > > On Fri, Sep 27, 2019 at 9:54 AM Jacques Le Roux < > [hidden email]> wrote: > >> Finally done :) >> >> https://s.apache.org/eiy7w >> >> Jacques >> >> Le 19/01/2019 à 04:08, Jacques Le Roux a écrit : >>> Thanks Anna Maria, >>> >>> That's really a good news. >>> >>> Hi team, we need to document that further. I'll at least create an entry >> in the wiki FAQ. >>> Jacques >>> >>> Le 19/01/2019 à 00:20, [hidden email] a écrit : >>>> Hi, >>>> >>>> It works for me on windows 10. >>>> After 2 days of searching for solutions online, >>>> from Turn windows feature on or off ->Windows subsystem for >> Linux->Restart and retry >>>> Good luck! >>>> >>>> >>>> |
:D :D
On Mon, Sep 30, 2019 at 1:54 PM Jacques Le Roux < [hidden email]> wrote: > I don't forget (yet :D) ;) > > Jacques > > Le 30/09/2019 à 07:42, Swapnil M Mane a écrit : > > Great, thank you Jacques, was much awaited TODO. > > > > Best regards, > > Swapnil M Mane, > > ofbiz.apache.org > > > > > > > > On Fri, Sep 27, 2019 at 9:54 AM Jacques Le Roux < > > [hidden email]> wrote: > > > >> Finally done :) > >> > >> https://s.apache.org/eiy7w > >> > >> Jacques > >> > >> Le 19/01/2019 à 04:08, Jacques Le Roux a écrit : > >>> Thanks Anna Maria, > >>> > >>> That's really a good news. > >>> > >>> Hi team, we need to document that further. I'll at least create an > entry > >> in the wiki FAQ. > >>> Jacques > >>> > >>> Le 19/01/2019 à 00:20, [hidden email] a écrit : > >>>> Hi, > >>>> > >>>> It works for me on windows 10. > >>>> After 2 days of searching for solutions online, > >>>> from Turn windows feature on or off ->Windows subsystem for > >> Linux->Restart and retry > >>>> Good luck! > >>>> > >>>> > >>>> > |
Free forum by Nabble | Edit this page |