Last Updated 20230506
Notes: I'm a 30 year closet hacker and not a professional programmer. This is what worked for me on a Windows 10 computer.
Beginners Development Guide : https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide+for+18.12
Download Eclipse from:
https://www.eclipse.org/downloads/
Select
Eclipse IDE for Java Developers
Install Eclipse
Launch Eclipse
Select
Select the Default Eclipse Workspace
Eclipse Home Screen
Select
Hide
Select
Open Perspective
Select
Git
Click on Open
Select
Clone a Git repository
Select
Clone URI
Click
Next
In a web browser goto:
https://github.com/apache/ofbiz-framework
Select
Code
Then Select
Duplicate Symbol
Back in Eclipse
Select URI
Paste duplicated link
Click
Next
Select
Production Ready OFBiz release 18.12
Click
Next
Select
Directory field
Suggested Directory is Root Level
Note: Make the directory first.
Note: Do NOT use a directory with spaces in it.
"Drive Letter":\ofbiz
Click
Finish
Note: Go get a cocktail or something...
In a web browser goto:
https://github.com/apache/ofbiz-plugins
Sleect
Code
Then Select
Duplicate Symbol
Back in Eclipse
Select
Clone Git Repository
Select URI
Paste duplicated link
Click
Next
Select
Production Ready OFBiz Branch release 18.12
Click
Next
Select
Directory field
"Drive Letter":\ofbiz\plugins
Click
Finish
Select
Window
Show View
Other
Select
Terminal Drop Down
Select
Terminal
Click
Open
Select
Terminal Icon
Click
OK
Type
cd\ofbiz
Press
Enter
Type
gradlew eclipse
Press
Enter
Running
Click
Allow Access
SORRY FOLKS MY BAD IT FAILED
I forgot to Download and install the Eclipse Temurin build of OpenJDK8
Please close Eclipse and proceed to next step.
Download and install the Eclipse Temurin build OpenJDK 8
Open a Web Browser and Type
https://adoptium.net/temurin/releases/?version=8
Select
Operating System - Architecture - Package Type - Version
Version = 8
20230607 Note: Using version 11 - LTS and all seems fine.
Click
.msi to Download
Open
File Manager
Select
Downloads Folder
Double Click
OpenJDK8U-jdk_x64_windows_hotspot_8u3772b07.msi
Click
Install Anyway
Click
Next
Click
Set JAVA_HOME will be installed on the local harddrive
Click
Next
On Next Screen Not Shown
Click
Install
On Next Screen Not Shown
Click
Allow to Make Changes to your Computer
Click
Finish
Reload Eclipse
Select
Terminal Window
Type cd
Type gradlew eclipse
Press Enter
This time it worked.
Select
ofbiz Working Tree
Right Click
Select
Import Projects
Click
Finish
Click
Show Solutions
Groovy Development Tools to Install or Not to Install?
Discussion Here on 20211214:
https://github.com/groovy/groovy-eclipse/issues/1319
I chose not to install at this time.
Load a DOS Command Prompt
Type
cd\ofbiz
Press Enter
Type
init-gradle-wrapper
Press Enter
Prepare OFBiz
Type
gradlew cleanAll loadAll
Note: For a clean no demo data load
Type:
gradlew "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
seed=Data that is required in order for the software to run
seed-initial=Data that is only required for the first time. I believe you don't want to run seed-initial on subsequent runs our you may have duplicates or overwrite existing data such as passwords in the system.
ext=Would be your data. Add a coma after initial then ext close quotation.
Sit back and watch. It's going to take a while.
Start OFBiz
Type
gradlew ofbiz
Press Enter
Load a Web Browser
Order Back Office
https://localhost:8443/ordermgr/control/main
Accounting Back Office
https://localhost:8443/accounting/control/main
Administrator interface
https://localhost:8443/webtools/control/main
User Name=admin
Password ofbiz.
Start from Scratch ie: NO demo data
Type
gradlew cleanAll "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
Press Enter
Note: It is advisable to change the admin ID to something else like bigdude or something.
Note: On login use your new User ID and Password=ofbiz. You will be required to change password at login.
Build completed
Start OFBiz in the Background
Type
gradlew "ofbizBackground --start"
Press Enter