Hello all,
I am trying to install apache-ofbiz-17.12.04 on windows 10 without sucess. I THINK I have JDK 8, JAVA_HOME set correctly, no space at paths, no proxy. details from CMD: C:\LIEL\apache-ofbiz-17.12.04>gradlew cleanAll loadAll --stacktrace :clean :cleanCatalina :cleanData :cleanDownloads :cleanEclipseClasspath UP-TO-DATE :cleanEclipseJdt UP-TO-DATE :cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE :cleanFooterFiles :cleanIndexes :cleanLogs :cleanOutput :cleanTempfiles :cleanUploads :cleanXtra :cleanAll :compileJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 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:61) 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:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 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_261\bin\java.exe'' finished with non-zero exit value 1 * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:61) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:45) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:233) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:74) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:55) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:197) at org.gradle.internal.Factories$1.create(Factories.java:25) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:194) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:36) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:118) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:112) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:98) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:293) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_261\bin\java.exe'' finished with non-zero exit value 1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:369) at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31) at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:624) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:607) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) ... 69 more BUILD FAILED Total time: 1 mins 3.497 secs |
UPDATE
I have reinstalled JDK in C:\LIEL\Java\jdk1.8.0_261 cause Program Files have space. Did not change the problam. On 2020/08/14 20:57:07, Liel Mazar <[hidden email]> wrote: > Hello all, > > I am trying to install apache-ofbiz-17.12.04 on windows 10 without sucess. > > I THINK I have JDK 8, JAVA_HOME set correctly, no space at paths, no proxy. > > details from CMD: > > C:\LIEL\apache-ofbiz-17.12.04>gradlew cleanAll loadAll --stacktrace > :clean > :cleanCatalina > :cleanData > :cleanDownloads > :cleanEclipseClasspath UP-TO-DATE > :cleanEclipseJdt UP-TO-DATE > :cleanEclipseProject UP-TO-DATE > :cleanEclipse UP-TO-DATE > :cleanFooterFiles > :cleanIndexes > :cleanLogs > :cleanOutput > :cleanTempfiles > :cleanUploads > :cleanXtra > :cleanAll > :compileJava > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > 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:61) > 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:418) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) > at java.lang.ClassLoader.loadClass(ClassLoader.java:351) > ... 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_261\bin\java.exe'' finished with non-zero exit value 1 > > * Try: > Run with --info or --debug option to get more log output. > > * Exception is: > org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'. > at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84) > at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55) > at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:61) > at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) > at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) > at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:45) > at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) > at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) > at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) > at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) > at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:233) > at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215) > at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:74) > at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:55) > at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32) > at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113) > at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) > at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) > at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) > at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) > at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) > at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) > at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) > at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:197) > at org.gradle.internal.Factories$1.create(Factories.java:25) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53) > at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:194) > at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:36) > at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:118) > at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:112) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63) > at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) > at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:98) > at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66) > at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) > at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) > at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) > at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) > at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) > at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) > at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) > at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) > at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) > at org.gradle.util.Swapper.swap(Swapper.java:38) > at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) > at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) > at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) > at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) > at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) > at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:293) > at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) > at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) > Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_261\bin\java.exe'' finished with non-zero exit value 1 > at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:369) > at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31) > at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74) > at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) > at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141) > at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) > at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) > at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:624) > at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:607) > at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) > at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) > ... 69 more > > > BUILD FAILED > > Total time: 1 mins 3.497 secs > |
I recently installed OFBiz on my Windows 10 system and made notes how I did
it, so I can repeat it on a different machine if necessary. Hope this helps. Install OFBiz on Microsoft Windows 10 1. Uninstall Java Runtime to get JDK and JRE to the same version 2. Download Java SE JDK https://www.oracle.com/java/technologies/java-se-glance.html Use the Java SE 8u261 version. Register with Oracle to be able to download that version. 3. Run the downloaded file and install the Java JDK and JRE. Do not modify the default file paths. 4. Download the OFBiz ZIP archive https://ofbiz.apache.org/download.html 5. Unpack the directory apache-ofbiz-17.12.04 in the zip file. You can rename this directory to e.g. c:\ofbiz 6. Set the environment variables control panel – extended system settings – environment variables, new JAVA_HOME variable JAVA_HOME to C:\Program Files\Java\jdk-14.0.2 test the setting of this variable in the command window: C:\Users\Potthast>echo %JAVA_HOME% C:\Program Files\Java\jdk-14.0.2 Add paths to system path variable: control panel – extended system settings – environment variables, existing path variable %JAVA_HOME% (=C:\Program Files\Java\jdk-14.0.2) %JAVA_HOME\bin% close these windows again to get Windows to enable these 7. Test the path variable open new command window enter java enter javac if these output a lot of explanations, your are ok 8. Test OFBiz Open the INSTALL file and follow the instructions in there open a command window in administrator mode for that right-click on the start button, open search, enter cmd and execute as administrator get into the ofbiz directory you created, e.g. c:\ofbiz enter: init-gradle-wrapper (=init-gradle-wrapper.bat) and then enter: gradlew cleanAll loadAll (=gradlew.bat cleanAll loadAll) allow this script to download files when queried by Windows Finally start OFBiz by entering: gradlew ofbiz You can make a startofbiz.bat file with this command and generate a link to that from your desktop to restart it conveniantly. OFBiz will compile and start. When the message OFBiz is started and ready appears, followed by several further messages, it will stop with the prompt :ofbiz. Then open a browser window and enter https://localhost:8443/webtools (or ecommerce, or catalog) The default login is admin, password ofbiz 9. Stopping OFBiz You may use Ctrl+C in the terminal were you started OFBiz. The „official“ way, which takes way longer, is to open another terminal and navigate to the ofbiz directory. In there enter gradlew „ofbiz --shutdown“ |
Just saw a bug in my notes. I had tried Java 14.0.2 first which failed and
left that in the notes. It should read: JAVA_HOME to C:\Program Files\Java\jdk1.8.0_261 So replace "C:\Program Files\Java\jdk-14.0.2" with "C:\Program Files\Java\jdk1.8.0_261" in the notes. -----Ursprüngliche Nachricht----- From: Georg Potthast Sent: Saturday, August 15, 2020 6:35 AM To: [hidden email] Subject: Re: Fail installing apache-ofbiz-17.12.04 on windows 10 I recently installed OFBiz on my Windows 10 system and made notes how I did it, so I can repeat it on a different machine if necessary. Hope this helps. Install OFBiz on Microsoft Windows 10 1. Uninstall Java Runtime to get JDK and JRE to the same version 2. Download Java SE JDK https://www.oracle.com/java/technologies/java-se-glance.html Use the Java SE 8u261 version. Register with Oracle to be able to download that version. 3. Run the downloaded file and install the Java JDK and JRE. Do not modify the default file paths. 4. Download the OFBiz ZIP archive https://ofbiz.apache.org/download.html 5. Unpack the directory apache-ofbiz-17.12.04 in the zip file. You can rename this directory to e.g. c:\ofbiz 6. Set the environment variables control panel – extended system settings – environment variables, new JAVA_HOME variable JAVA_HOME to C:\Program Files\Java\jdk-14.0.2 test the setting of this variable in the command window: C:\Users\Potthast>echo %JAVA_HOME% C:\Program Files\Java\jdk-14.0.2 Add paths to system path variable: control panel – extended system settings – environment variables, existing path variable %JAVA_HOME% (=C:\Program Files\Java\jdk-14.0.2) %JAVA_HOME\bin% close these windows again to get Windows to enable these 7. Test the path variable open new command window enter java enter javac if these output a lot of explanations, your are ok 8. Test OFBiz Open the INSTALL file and follow the instructions in there open a command window in administrator mode for that right-click on the start button, open search, enter cmd and execute as administrator get into the ofbiz directory you created, e.g. c:\ofbiz enter: init-gradle-wrapper (=init-gradle-wrapper.bat) and then enter: gradlew cleanAll loadAll (=gradlew.bat cleanAll loadAll) allow this script to download files when queried by Windows Finally start OFBiz by entering: gradlew ofbiz You can make a startofbiz.bat file with this command and generate a link to that from your desktop to restart it conveniantly. OFBiz will compile and start. When the message OFBiz is started and ready appears, followed by several further messages, it will stop with the prompt :ofbiz. Then open a browser window and enter https://localhost:8443/webtools (or ecommerce, or catalog) The default login is admin, password ofbiz 9. Stopping OFBiz You may use Ctrl+C in the terminal were you started OFBiz. The „official“ way, which takes way longer, is to open another terminal and navigate to the ofbiz directory. In there enter gradlew „ofbiz --shutdown“ |
Administrator
|
Hi Georg,
We preconise to use https://adoptopenjdk.net/releases.html And exactly for OFBiz https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=hotspot (All OFBiz versions currently support only Java 8) HTH Jacques Le 15/08/2020 à 06:55, Georg Potthast a écrit : > Just saw a bug in my notes. I had tried Java 14.0.2 first which failed and left that in the notes. It should read: > JAVA_HOME to C:\Program Files\Java\jdk1.8.0_261 > > So replace "C:\Program Files\Java\jdk-14.0.2" with "C:\Program Files\Java\jdk1.8.0_261" in the notes. > > -----Ursprüngliche Nachricht----- From: Georg Potthast > Sent: Saturday, August 15, 2020 6:35 AM > To: [hidden email] > Subject: Re: Fail installing apache-ofbiz-17.12.04 on windows 10 > > I recently installed OFBiz on my Windows 10 system and made notes how I did > it, so I can repeat it on a different machine if necessary. Hope this helps. > > > Install OFBiz on Microsoft Windows 10 > > 1. Uninstall Java Runtime to get JDK and JRE to the same version > > 2. Download Java SE JDK > https://www.oracle.com/java/technologies/java-se-glance.html > Use the Java SE 8u261 version. Register with Oracle to be able to download > that version. > > 3. Run the downloaded file and install the Java JDK and JRE. Do not modify > the default file paths. > > 4. Download the OFBiz ZIP archive > https://ofbiz.apache.org/download.html > > 5. Unpack the directory apache-ofbiz-17.12.04 in the zip file. > You can rename this directory to e.g. c:\ofbiz > > 6. Set the environment variables > control panel – extended system settings – environment variables, new > JAVA_HOME variable > JAVA_HOME to C:\Program Files\Java\jdk-14.0.2 > test the setting of this variable in the command window: > C:\Users\Potthast>echo %JAVA_HOME% > C:\Program Files\Java\jdk-14.0.2 > > Add paths to system path variable: > control panel – extended system settings – environment variables, existing > path variable > %JAVA_HOME% (=C:\Program Files\Java\jdk-14.0.2) > %JAVA_HOME\bin% > close these windows again to get Windows to enable these > > 7. Test the path variable > open new command window > enter java > enter javac > if these output a lot of explanations, your are ok > > 8. Test OFBiz > Open the INSTALL file and follow the instructions in there > > open a command window in administrator mode > for that right-click on the start button, open search, enter cmd and execute > as administrator > get into the ofbiz directory you created, e.g. c:\ofbiz > enter: > init-gradle-wrapper (=init-gradle-wrapper.bat) > > and then enter: > gradlew cleanAll loadAll (=gradlew.bat cleanAll loadAll) > allow this script to download files when queried by Windows > > Finally start OFBiz by entering: gradlew ofbiz > You can make a startofbiz.bat file with this command and generate a link to > that from your desktop to restart it conveniantly. > > OFBiz will compile and start. When the message OFBiz is started and ready > appears, followed by several further messages, it will stop with the prompt > :ofbiz. Then open a browser window and enter https://localhost:8443/webtools > (or ecommerce, or catalog) > > The default login is admin, password ofbiz > > 9. Stopping OFBiz > > You may use Ctrl+C in the terminal were you started OFBiz. > > The „official“ way, which takes way longer, is to open another terminal and > navigate to the ofbiz directory. In there enter gradlew „ofbiz --shutdown“ |
Thanks, Jacques.
As an addition: the Oracle JDK 8 is out of free support (no security fixes or else without paid subscription). To get free bug/security fixes you'll have to switch to the next JDK version about every 6 months which is not practicable in a serious production environment. The Adopt OpenJDK Long Term Support (LTS) releases are maintained much longer without any fee. See https://adoptopenjdk.net/support.html for the release roadmap. This gives us enough time tp prepare for the next LTS version and users are not forced to switch without enough testing time. We are using the Adopt OpenJDK releases in our customer/internal production systems for quite a while now and haven't had any problems so far. Regarding the install: you do not have to uninstall other Java installations to make OFBiz work on your machine. Just unpack the JDK in your preferred folder and point the JAVA_HOME environment variable to this folder. I recommend doing this in the start/stop scripts to avoid problems with other applications relying on the JAVA_HOME from the global Windows environment variables. Best regards, Michael Brohl ecomify GmbH - www.ecomify.de Am 15.08.20 um 14:43 schrieb Jacques Le Roux: > Hi Georg, > > We preconise to use https://adoptopenjdk.net/releases.html > > And exactly for OFBiz > https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=hotspot > (All OFBiz versions currently support only Java 8) > > HTH > > Jacques > > Le 15/08/2020 à 06:55, Georg Potthast a écrit : >> Just saw a bug in my notes. I had tried Java 14.0.2 first which >> failed and left that in the notes. It should read: >> JAVA_HOME to C:\Program Files\Java\jdk1.8.0_261 >> >> So replace "C:\Program Files\Java\jdk-14.0.2" with "C:\Program >> Files\Java\jdk1.8.0_261" in the notes. >> >> -----Ursprüngliche Nachricht----- From: Georg Potthast >> Sent: Saturday, August 15, 2020 6:35 AM >> To: [hidden email] >> Subject: Re: Fail installing apache-ofbiz-17.12.04 on windows 10 >> >> I recently installed OFBiz on my Windows 10 system and made notes how >> I did >> it, so I can repeat it on a different machine if necessary. Hope this >> helps. >> >> >> Install OFBiz on Microsoft Windows 10 >> >> 1. Uninstall Java Runtime to get JDK and JRE to the same version >> >> 2. Download Java SE JDK >> https://www.oracle.com/java/technologies/java-se-glance.html >> Use the Java SE 8u261 version. Register with Oracle to be able to >> download >> that version. >> >> 3. Run the downloaded file and install the Java JDK and JRE. Do not >> modify >> the default file paths. >> >> 4. Download the OFBiz ZIP archive >> https://ofbiz.apache.org/download.html >> >> 5. Unpack the directory apache-ofbiz-17.12.04 in the zip file. >> You can rename this directory to e.g. c:\ofbiz >> >> 6. Set the environment variables >> control panel – extended system settings – environment variables, new >> JAVA_HOME variable >> JAVA_HOME to C:\Program Files\Java\jdk-14.0.2 >> test the setting of this variable in the command window: >> C:\Users\Potthast>echo %JAVA_HOME% >> C:\Program Files\Java\jdk-14.0.2 >> >> Add paths to system path variable: >> control panel – extended system settings – environment variables, >> existing >> path variable >> %JAVA_HOME% (=C:\Program Files\Java\jdk-14.0.2) >> %JAVA_HOME\bin% >> close these windows again to get Windows to enable these >> >> 7. Test the path variable >> open new command window >> enter java >> enter javac >> if these output a lot of explanations, your are ok >> >> 8. Test OFBiz >> Open the INSTALL file and follow the instructions in there >> >> open a command window in administrator mode >> for that right-click on the start button, open search, enter cmd and >> execute >> as administrator >> get into the ofbiz directory you created, e.g. c:\ofbiz >> enter: >> init-gradle-wrapper (=init-gradle-wrapper.bat) >> >> and then enter: >> gradlew cleanAll loadAll (=gradlew.bat cleanAll loadAll) >> allow this script to download files when queried by Windows >> >> Finally start OFBiz by entering: gradlew ofbiz >> You can make a startofbiz.bat file with this command and generate a >> link to >> that from your desktop to restart it conveniantly. >> >> OFBiz will compile and start. When the message OFBiz is started and >> ready >> appears, followed by several further messages, it will stop with the >> prompt >> :ofbiz. Then open a browser window and enter >> https://localhost:8443/webtools >> (or ecommerce, or catalog) >> >> The default login is admin, password ofbiz >> >> 9. Stopping OFBiz >> >> You may use Ctrl+C in the terminal were you started OFBiz. >> >> The „official“ way, which takes way longer, is to open another >> terminal and >> navigate to the ofbiz directory. In there enter gradlew „ofbiz >> --shutdown“ > smime.p7s (5K) Download Attachment |
Free forum by Nabble | Edit this page |