The setup process of IDempiere ERP is not so simple… so here there are some tips for commons problems.
setup.sh errors (Error initializing storage)
Tips 1
Use the right Java version (for IDempiere 4.1 java sdk 8) and set JAVA_HOME and PATH environment
Tips 2
1. Backup first all folder at \setup\configuration\
2. Delete all folder at \setup\configuration\, except config.ini
3. Run setup.bat again (or setup-alt.sh)
4. Run idempiere successfully
Tips 3
User setup-alt.sh
I hope it’s helps.
Error “Unable to access jarfile /plugins/org.eclipse.equinox.launcher_1.*.jar” on MacOSX
This is the error
===================================
Starting iDempiere Server
===================================
readlink: illegal option — f
usage: readlink [-n] [file …]
usage: dirname path
Error: Unable to access jarfile /plugins/org.eclipse.equinox.launcher_1.*.jar
The solution (from https://groups.google.com/forum/#!topic/idempiere/I1414CwXSog) is to install coreutica using brew
brew install coreutils
then I had to set the PATH env
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
non bisogna poi dimenticare di settare JAVA_HOME
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"