Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Issues building theme Liferay 7.1 and Open JDK 11
Hi all.
I am facing an issue when trying to deploy a theme made with Maven.
I am using Liferay DXP 7.1 and Open JDK11
I got errors all the time like this:
Any ideas of what is happening? I was looking for info and what I found is that it may be caused by Java 11, but I need some help.
Thanks in advance!
Kind regards
I am facing an issue when trying to deploy a theme made with Maven.
I am using Liferay DXP 7.1 and Open JDK11
I got errors all the time like this:
Using native Sass compilerIn pom.xml
# BridJ: LoadLibrary error when loading C:\Users\userD\AppData\Local\Temp\BridJExtractedLibraries16941439282191684026\liferaysass.dll : A dynamic link library (DLL) initialization routine failed
<build>
<plugins>
<plugin>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.portal.tools.theme.builder</artifactid>
<version>1.1.4</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<diffsdir>${maven.war.src}</diffsdir>
<name>${project.artifactId}</name>
<outputdir>${project.build.directory}/${project.build.finalName}</outputdir>
<parentdir>${project.build.directory}/deps/com.liferay.frontend.theme.styled.jar</parentdir>
<parentname>_styled</parentname>
<templateextension>ftl</templateextension>
<unstyleddir>${project.build.directory}/deps/com.liferay.frontend.theme.unstyled.jar</unstyleddir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.css.builder</artifactid>
<version>2.1.0</version>
<executions>
<execution>
<id>default-build</id>
<phase>compile</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<docrootdirname>target/${project.build.finalName}</docrootdirname>
<outputdirname>/</outputdirname>
<portalcommonpath>target/deps/com.liferay.frontend.css.common.jar</portalcommonpath>
</configuration>
</plugin>
<plugin>
<artifactid>maven-dependency-plugin</artifactid>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactitems>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.css.common</artifactid>
<version>${com.liferay.frontend.css.common.version}</version>
</artifactitem>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.theme.styled</artifactid>
<version>${com.liferay.frontend.theme.styled.version}</version>
</artifactitem>
<artifactitem>
<groupid>com.liferay</groupid>
<artifactid>com.liferay.frontend.theme.unstyled</artifactid>
<version>${com.liferay.frontend.theme.unstyled.version}</version>
</artifactitem>
</artifactitems>
<outputdirectory>${project.build.directory}/deps</outputdirectory>
<stripversion>true</stripversion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactid>maven-war-plugin</artifactid>
<version>3.0.0</version>
<configuration>
<packagingexcludes>**/*.scss</packagingexcludes>
</configuration>
</plugin>
</plugins></build>
Any ideas of what is happening? I was looking for info and what I found is that it may be caused by Java 11, but I need some help.
Thanks in advance!
Kind regards
AFAIK JDK 11 is not yet supported. Go down to OpenJDK 8 and you should be back in business.
Thanks David for your answer.
In the compatibility matrix of Liferay 7.1, Open JDK 11 appears as one of the supported jdks (with Liferay 7.1 Fixpack 5). I will try to go back to jdk 8 and check if this solve the issue.
Regards.
In the compatibility matrix of Liferay 7.1, Open JDK 11 appears as one of the supported jdks (with Liferay 7.1 Fixpack 5). I will try to go back to jdk 8 and check if this solve the issue.
Regards.
That is only going to be for running the portal under JDK 11, it is not going to be across all of the related build tools, etc.
The same kind of thing happened w/ JDK 8; the portal could run under 8, but for awhile we were still building using JDK 7.
I'm sure all of the build tools will get there, just not sure how long that will take.
The same kind of thing happened w/ JDK 8; the portal could run under 8, but for awhile we were still building using JDK 7.
I'm sure all of the build tools will get there, just not sure how long that will take.
As you said, it was problem of compatibility. I went down to JDK 8 and it worked as expected.
Thanks again, as usual, you've helped me a lot!
Regards
Thanks again, as usual, you've helped me a lot!
Regards
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™