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: [email protected] 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“
