While I was typing the final "ant all" command for hybris, it miserably failed with the following exception
hybris/bin/platform/resources/ant/antmacros.xml:123: java.lang.UnsupportedClassVersionError: de/hybris/ant/taskdefs/DbDriverValidator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)
Even though a "java -version" gave me back version 8, ant is still using $JAVA_HOME variable.
So you have to change it into the script. My suggestion is that you adapt the setantenv.bat script with the JAVA_HOME directly
set ANT_OPTS=-Xmx512m -Dfile.encoding=UTF-8
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_101
rem deleting CLASSPATH as a workaround for PLA-8702
echo Setting ant home to: %ANT_HOME%
I spent the whole afternoon trying to set up a Oracle Express instance without any success.
I had the drivers installed, but I could not uninstall them.
It looked like the main instance was not correctly set up. After looking around, I noticed that even after complete uninstall of Oracle XE still the ORACLE_HOME environment variable was still there. I tried again manually removing it from System Variables and then reinstalling... and it finally worked!
After many trials and attempts with other criteria tricks, I remembered that hibernate is not comparting if currentDate.getTime is greater than effectiveFrom, but if effectiveFrom is greater than currentDate.getTime
So correct sintax for it was the exact opposite