cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hybris upgrade from 2105 to 2205 Unrecognized option : --add-opens

ferasm
Member
0 Likes
533

Hi,

I'm currently trying to upgrade the hybris version from 2105 to 2205 and I get the following error: Unrecognized option : --add-opens and the ant clean all fails. I've upgrated the java version to 17 and also tried to add the VM options "--add-opens java.base/java.lang=ALL-UNNAMED" but it does not have any effects. Also added to environment variables but still nothing even there seems to be picked up when setantenv.bat but then the same error occur.

This happens after is trying to create the dir modelclasses and to copy some source files to this. See below:

[echo] building models from myHybrisProjectPath\hybris\bin\platform/bootstrap/gensrc to myHybrisProjectPath\hybris\bin\platform/bootstrap/bin/models.jar

[mkdir] Created dir: myHybrisProjectPath\hybris\bin\platform\bootstrap\modelclasses

[yjavac] Compiling 2440 source files to myHybrisProjectPath\hybris\bin\platform\bootstrap\modelclasses

[yjavac] Unrecognized option : --add-opens

BUILD FAILED

Thank you in advance for possible answers!

Accepted Solutions (0)

Answers (0)