Error building Ofbiz on Windows 10

2022-05-01 Thread Emad Radwan
Hello Community, It’s the latest version of Ofbiz and JDK version 1.8 from adoptopenjkd and I’m getting the following error that I think is related to gradle. I tried different versions of gradle but finally have 6.5 but no luck yet. Will really appreciate any help. Regards, Emad FAILURE: Bui

Re: Error building Ofbiz on Windows 10

2022-05-02 Thread Jacques Le Roux
Hi Emad, There is a JDK conflict, major version 62 is JDK 17, not yet supported by OFBiz only officially JDK 8, the demos are running with JDK 11. Is that a clean (1st time build) for this instance on this machine? Else try a clean before building. If it's not that, maybe a JDK conflict, espe

Re: Error building Ofbiz on Windows 10

2022-05-02 Thread Emad Radwan
Hello Jacques, Thanks for the help, I changed to JDK 8 and having some progress, but still getting an error. How can I fix this? Regards, Emad C:\apache-ofbiz-18>gradle --warning-mode=none loadall ofbiz > Task :compileJava UP-TO-DATE > Task :compileGroovy UP-TO-DATE > Task :processResources

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Emad Radwan
Hi, if it helps, I tried ‘cleanall’ and got the following. Anny hint, please. Regards, Emad C:\apache-ofbiz-18>gradle --warning-mode all cleanall > Configure project : The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please u

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Michael Brohl
Hi Emad, It seems the build is running fine with just some deprecation warnings. What do you think is going wrong? Michael Brohl ecomify GmbH - www.ecomify.de Am 04.05.22 um 15:48 schrieb Emad Radwan: Hi, if it helps, I tried ‘cleanall’ and got the following. Anny hint, please. Regards, E

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Emad Radwan
Hi Michael, Unfortunately, I’m not a java developer! I re-run with - stacktrace parameter - and got the following. Appreciate if you can extract something useful from it. Regards, Emad C:\apache-ofbiz-18>gradle cleanall --warning-mode all --stacktrace > Configure project : The compile configu

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Jacques Le Roux
Hi Emad, The build is successful that's all that count. What you are showing is only a warning about running with "Gradle 7.0". In the other words, if you would do that. For the moment OFBiz is only running and delivered with, trunk: Gradle 6.5 and 18.12: Gradle 5.0 HTH Jacques Le 04/05/20

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Michael Brohl
Hi Emad, please have a look at the last output, it states "BUILD SUCCESSFUL in 8s 15 actionable tasks: 10 executed, 5 up-to-date" The deprecation warnings are just warnings, stating that the build currently uses configurations which are deprecated and which will result in an error if Gradle 7

Re: Error building Ofbiz on Windows 10

2022-05-04 Thread Daniel Watford
Hi Emad, Do you get a different result if you build using gradlew rather than gradle? You may need to run the init-gradle-wrapper.bat file in the project root first to download the relevant gradlew jar. After that, run your build and deployment commands using the gradlew script in the project ro

Re: Error building Ofbiz on Windows 10

2022-05-05 Thread Emad Radwan
Hi Daniel, Almost the same result after using gradlew. Build fails at task ‘checkstyleMain’. Regards, Emad C:\apache-ofbiz-18>gradlew loadall ofbiz --info Initialized native services in: C:\Users\20102\.gradle\native The client will now receive all logging from the daemon (pid: 3352). The dae

Re: Error building Ofbiz on Windows 10

2022-05-05 Thread Daniel Watford
Hi Emad, I don't have an answer yet, just a few more things to check. I thought I would try and reproduce the issue you were hitting but my build was fine. However I'm building in docker containers under WSL, so already several variables have changed when compared to your build environment. Here

Re: Error building Ofbiz on Windows 10

2022-05-06 Thread Emad Radwan
Hi All, I was able to fix the ‘checkstyle' error using the hint shared by Dan in the stack overflow issue by just replacing the checkstyle.xml file! However, another error is arising with the following messages. It worth mentioning here that I’m trying to Connect to a MS Sql Server database an

Re: Error building Ofbiz on Windows 10

2022-05-06 Thread Daniel Watford
Hi Emad, Could you elaborate a bit more on what was wrong with the checkstyle.xml file? Was it missing? Did it have some errors in it? Regarding the failed tests, assuming they are integration tests, I would expect them to be dependent on the out-of-the-box derby database. Do the tests pass if yo

Re: Error building Ofbiz on Windows 10

2022-05-06 Thread Emad Radwan
Hi Dan, The file was not missing. I just replaced the contents with the same from Github. Here is both as I still have the original download: // Original file: https://checkstyle.org/dtds/configuration_1_3.dtd";>

Re: Error building Ofbiz on Windows 10

2022-05-06 Thread Daniel Watford
Hi Emad, That's a bit too much text in an email for my brain to process! Please could you try running a diff on the files to see if you can spot the difference? A possible difference might be LF vs CRLF line endings. Always a joy to figure that stuff out! :) It would also be useful to know if yo