You can either build with OpenJDK 11 with the option or build it with
OpenJDK 17 without the option.

The option:

-XX:MaxPermSize=size

Was already deprecated for a while and has been removed in Java 17.

Raymond


On Tue, Sep 20, 2022 at 10:27 AM FÖRSTERLING Björn <
bjoern.foersterl...@cpb-software.com> wrote:

> Hello,
>
> I just tried building Apache Camel to get a jar.
> According to the documentation you have to execute these two lines:
>
> $ export MAVEN_OPTS="-Xms3000m -Xmx3000m -XX:MaxPermSize=512m"
> $ mvn clean source:jar install -Pfastinstall
> Unrecognized VM option 'MaxPermSize=512m'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> I use openjdk version "17.0.4" 2022-07-19.
>
> Do I need an older java version or is the MaxPermSize option different
> different in java 17?
>
> Thanks in advance.
>
> Greetings
> Björn Försterling
>

Reply via email to